MCPcopy
hub / github.com/stretchr/testify / Test_Arguments_Get

Function Test_Arguments_Get

mock/mock_test.go:1886–1895  ·  view source on GitHub ↗

* Arguments helper methods */

(t *testing.T)

Source from the content-addressed store, hash-verified

1884Arguments helper methods
1885*/
1886func Test_Arguments_Get(t *testing.T) {
1887 t.Parallel()
1888
1889 var args = Arguments([]interface{}{"string", 123, true})
1890
1891 assert.Equal(t, "string", args.Get(0).(string))
1892 assert.Equal(t, 123, args.Get(1).(int))
1893 assert.Equal(t, true, args.Get(2).(bool))
1894
1895}
1896
1897func Test_Arguments_Is(t *testing.T) {
1898 t.Parallel()

Callers

nothing calls this directly

Calls 3

EqualFunction · 0.92
ArgumentsTypeAlias · 0.85
GetMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…