aboutsummaryrefslogtreecommitdiff
path: root/cmp/testdata/diffs
diff options
context:
space:
mode:
Diffstat (limited to 'cmp/testdata/diffs')
-rw-r--r--cmp/testdata/diffs30
1 files changed, 27 insertions, 3 deletions
diff --git a/cmp/testdata/diffs b/cmp/testdata/diffs
index 23781f7..8bff76f 100644
--- a/cmp/testdata/diffs
+++ b/cmp/testdata/diffs
@@ -241,9 +241,9 @@
"string",
}),
Bytes: []uint8(Inverse(SplitBytes, [][]uint8{
- {0x73, 0x6f, 0x6d, 0x65},
- {0x6d, 0x75, 0x6c, 0x74, ...},
- {0x6c, 0x69, 0x6e, 0x65},
+ "some",
+ "multi",
+ "line",
{
- 0x62,
+ 0x42,
@@ -1158,6 +1158,30 @@
+ X: uint(0),
}
>>> TestDiff/Reporter/StructFieldAny
+<<< TestDiff/Reporter/SliceOfBytesText
+ [][]uint8{
+- "hello",
+ "foo",
++ "foo",
+ "barbaz",
++ "added",
++ "here",
+- "blahdieblah",
++ "hrmph",
+ }
+>>> TestDiff/Reporter/SliceOfBytesText
+<<< TestDiff/Reporter/SliceOfBytesBinary
+ [][]uint8{
+- {0xde, 0xad, 0xbe, 0xef},
+ {0xff, 0x6f, 0x6f},
++ "foo",
+ "barbaz",
++ "added",
++ "here",
+- "blahdieblah",
++ {0x68, 0x72, 0x6d, 0x70, 0x68, 0xff},
+ }
+>>> TestDiff/Reporter/SliceOfBytesBinary
<<< TestDiff/EmbeddedStruct/ParentStructA/Inequal
teststructs.ParentStructA{
privateStruct: teststructs.privateStruct{