MCPcopy Create free account
hub / github.com/imroc/req / TestGetType

Function TestGetType

internal/util/util_test.go:130–136  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

128}
129
130func TestGetType(t *testing.T) {
131 type Foo struct{ X int }
132 f := &Foo{}
133 if got := GetType(f); got.Name() != "Foo" {
134 t.Fatalf("GetType = %s, want Foo", got.Name())
135 }
136}
137
138func TestCreateDirectory(t *testing.T) {
139 dir := t.TempDir() + "/testdir"

Callers

nothing calls this directly

Calls 2

GetTypeFunction · 0.85
NameMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…