(t *testing.T, p T, want string)
| 10 | ) |
| 11 | |
| 12 | func 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 | |
| 20 | func TestToPointer2(t *testing.T) { |
| 21 | checkIdentical(t, conversions.ToPointer("a"), "*string") |
no test coverage detected