MCPcopy Create free account
hub / github.com/gavv/httpexpect / TestBoolean_Alias

Function TestBoolean_Alias

boolean_test.go:115–125  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

113}
114
115func TestBoolean_Alias(t *testing.T) {
116 reporter := newMockReporter(t)
117
118 value := NewBoolean(reporter, true)
119 assert.Equal(t, []string{"Boolean()"}, value.chain.context.Path)
120 assert.Equal(t, []string{"Boolean()"}, value.chain.context.AliasedPath)
121
122 value.Alias("foo")
123 assert.Equal(t, []string{"Boolean()"}, value.chain.context.Path)
124 assert.Equal(t, []string{"foo"}, value.chain.context.AliasedPath)
125}
126
127func TestBoolean_Path(t *testing.T) {
128 reporter := newMockReporter(t)

Callers

nothing calls this directly

Calls 4

AliasMethod · 0.95
newMockReporterFunction · 0.85
NewBooleanFunction · 0.85
EqualMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…