MCPcopy
hub / github.com/opencloud-eu/opencloud / checkIdentical

Function checkIdentical

pkg/conversions/ptr_test.go:12–18  ·  view source on GitHub ↗
(t *testing.T, p T, want string)

Source from the content-addressed store, hash-verified

10)
11
12func checkIdentical[T any](t *testing.T, p T, want string) {
13 t.Helper()
14 got := fmt.Sprintf("%T", p)
15 if got != want {
16 t.Errorf("want:%q got:%q", want, got)
17 }
18}
19
20func TestToPointer2(t *testing.T) {
21 checkIdentical(t, conversions.ToPointer("a"), "*string")

Callers 4

TestToPointer2Function · 0.85
TestToValueFunction · 0.85
TestToPointerSliceFunction · 0.85
TestToValueSliceFunction · 0.85

Calls 1

ErrorfMethod · 0.80

Tested by

no test coverage detected