MCPcopy Create free account
hub / github.com/barnybug/cli53 / TestKeyValuesString

Function TestKeyValuesString

util_test.go:13–19  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

11)
12
13func TestKeyValuesString(t *testing.T) {
14 assert.Equal(t, "a=1", KeyValues{"a", 1}.String())
15 assert.Equal(t, `a=""`, KeyValues{"a", ""}.String())
16 assert.Equal(t, `a="1"`, KeyValues{"a", "1"}.String())
17 assert.Equal(t, `a="\""`, KeyValues{"a", `"`}.String())
18 assert.Equal(t, `a="\\"`, KeyValues{"a", `\`}.String())
19}
20
21func mustParse(input string) KeyValues {
22 result, err := ParseKeyValues(input)

Callers

nothing calls this directly

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected