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

Function TestFormatOrderedMapValue_IntegerKeys

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

Source from the content-addressed store, hash-verified

20}
21
22func TestFormatOrderedMapValue_IntegerKeys(t *testing.T) {
23 m := arrowmap.OrderedMapValue{Keys: []any{int32(1)}, Values: []any{"one"}}
24 got := formatOrderedMapValue(m)
25 if got != "{1=one}" {
26 t.Errorf("formatOrderedMapValue = %q, want %q", got, "{1=one}")
27 }
28}
29
30func TestFormatOrderedMapValue_Empty(t *testing.T) {
31 m := arrowmap.OrderedMapValue{Keys: []any{}, Values: []any{}}

Callers

nothing calls this directly

Calls 1

formatOrderedMapValueFunction · 0.85

Tested by

no test coverage detected