Skip to content

Commit 847b043

Browse files
Add back TestNotHandled for 100% coverage
1 parent 6420365 commit 847b043

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

deep_test.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,17 @@ func TestMaxDiff(t *testing.T) {
310310
}
311311
}
312312

313+
func TestNotHandled(t *testing.T) {
314+
// UnsafePointer is pretty much the only kind not handled now
315+
v := []int{1}
316+
a := reflect.ValueOf(v).UnsafePointer()
317+
b := reflect.ValueOf(v).UnsafePointer()
318+
diff := deep.Equal(a, b)
319+
if len(diff) > 0 {
320+
t.Error("got diffs:", diff)
321+
}
322+
}
323+
313324
func TestStruct(t *testing.T) {
314325
type s1 struct {
315326
id int

0 commit comments

Comments
 (0)