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

Function TestArray_Raw

array_test.go:137–147  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

135}
136
137func TestArray_Raw(t *testing.T) {
138 reporter := newMockReporter(t)
139
140 data := []interface{}{"foo", 123.0}
141
142 value := NewArray(reporter, data)
143
144 assert.Equal(t, data, value.Raw())
145 assert.NotSame(t, &data[0], &value.Raw()[0])
146 value.chain.assert(t, success)
147}
148
149func TestArray_Decode(t *testing.T) {
150 t.Run("target is empty interface", func(t *testing.T) {

Callers

nothing calls this directly

Calls 5

RawMethod · 0.95
newMockReporterFunction · 0.85
NewArrayFunction · 0.85
assertMethod · 0.80
EqualMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…