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

Function TestString_Getters

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

Source from the content-addressed store, hash-verified

174}
175
176func TestString_Getters(t *testing.T) {
177 t.Run("length", func(t *testing.T) {
178 reporter := newMockReporter(t)
179
180 value := NewString(reporter, "foo")
181
182 innerValue := value.Length()
183 assert.Equal(t, 3.0, innerValue.Raw())
184
185 value.chain.assert(t, success)
186 innerValue.chain.assert(t, success)
187 })
188}
189
190func TestString_IsEmpty(t *testing.T) {
191 cases := []struct {

Callers

nothing calls this directly

Calls 6

LengthMethod · 0.95
newMockReporterFunction · 0.85
NewStringFunction · 0.85
assertMethod · 0.80
EqualMethod · 0.45
RawMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…