MCPcopy Create free account
hub / github.com/openclaw/gogcli / TestDecodeUsesNativeJSONNumbers

Function TestDecodeUsesNativeJSONNumbers

internal/sheetsvalues/values_test.go:26–35  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

24}
25
26func TestDecodeUsesNativeJSONNumbers(t *testing.T) {
27 values, err := Decode([]byte(`[[2]]`))
28 if err != nil {
29 t.Fatalf("Decode() error = %v", err)
30 }
31
32 if value, ok := values[0][0].(float64); !ok || value != 2 {
33 t.Fatalf("value = %#v", values[0][0])
34 }
35}
36
37func TestParseArgs(t *testing.T) {
38 values := ParseArgs([]string{"a | b,", "c|d"})

Callers

nothing calls this directly

Calls 1

DecodeFunction · 0.70

Tested by

no test coverage detected