MCPcopy
hub / github.com/tidwall/gjson / TestIssue20

Function TestIssue20

gjson_test.go:905–914  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

903 }
904}
905func TestIssue20(t *testing.T) {
906 json := `{ "name": "FirstName", "name1": "FirstName1", ` +
907 `"address": "address1", "addressDetails": "address2", }`
908 paths := []string{"name", "name1", "address", "addressDetails"}
909 expected := []string{"FirstName", "FirstName1", "address1", "address2"}
910 t.Run("SingleMany", func(t *testing.T) {
911 testMany(t, json, paths,
912 expected)
913 })
914}
915
916func TestIssue21(t *testing.T) {
917 json := `{ "Level1Field1":3,

Callers

nothing calls this directly

Calls 1

testManyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…