(t *testing.T)
| 29 | } |
| 30 | |
| 31 | func TestValOrDefaultFunc(t *testing.T) { |
| 32 | t.Parallel() |
| 33 | |
| 34 | val := "val" |
| 35 | require.Equal(t, val, ValOrDefaultFunc(&val, func() string { return "default" })) |
| 36 | require.Equal(t, "default", ValOrDefaultFunc((*string)(nil), func() string { return "default" })) |
| 37 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…