MCPcopy Create free account
hub / github.com/PostHog/duckgres / TestFormatOrderedMapValue_Empty

Function TestFormatOrderedMapValue_Empty

server/format_ordered_map_test.go:30–36  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

28}
29
30func TestFormatOrderedMapValue_Empty(t *testing.T) {
31 m := arrowmap.OrderedMapValue{Keys: []any{}, Values: []any{}}
32 got := formatOrderedMapValue(m)
33 if got != "{}" {
34 t.Errorf("formatOrderedMapValue = %q, want %q", got, "{}")
35 }
36}
37
38func TestFormatOrderedMapValue_NilValue(t *testing.T) {
39 m := arrowmap.OrderedMapValue{Keys: []any{"k"}, Values: []any{nil}}

Callers

nothing calls this directly

Calls 1

formatOrderedMapValueFunction · 0.85

Tested by

no test coverage detected