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

Function testEscapePath

gjson_test.go:78–82  ·  view source on GitHub ↗
(t *testing.T, json, path, expect string)

Source from the content-addressed store, hash-verified

76}
77
78func testEscapePath(t *testing.T, json, path, expect string) {
79 if Get(json, path).String() != expect {
80 t.Fatalf("expected '%v', got '%v'", expect, Get(json, path).String())
81 }
82}
83
84func TestEscapePath(t *testing.T) {
85 json := `{

Callers 1

TestEscapePathFunction · 0.85

Calls 2

GetFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…