MCPcopy Index your code
hub / github.com/gavv/httpexpect / TestString_Schema

Function TestString_Schema

string_test.go:166–174  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

164}
165
166func TestString_Schema(t *testing.T) {
167 reporter := newMockReporter(t)
168
169 NewString(reporter, "foo").Schema(`{"type": "string"}`).
170 chain.assert(t, success)
171
172 NewString(reporter, "foo").Schema(`{"type": "object"}`).
173 chain.assert(t, failure)
174}
175
176func TestString_Getters(t *testing.T) {
177 t.Run("length", func(t *testing.T) {

Callers

nothing calls this directly

Calls 4

newMockReporterFunction · 0.85
NewStringFunction · 0.85
assertMethod · 0.80
SchemaMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…