(t *testing.T, input, snapshot []byte)
| 19 | } |
| 20 | |
| 21 | func assertBackingArrayUnchanged(t *testing.T, input, snapshot []byte) { |
| 22 | t.Helper() |
| 23 | |
| 24 | if got := input[:cap(input)]; !bytes.Equal(got, snapshot) { |
| 25 | t.Fatalf("input backing array changed:\n got: %v\nwant: %v", got, snapshot) |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | // Verifies: SYS-REQ-009 [regression, issues #209 and #141] |
| 30 | func TestSetDoesNotMutateInputBackingArrayWhenGrowing(t *testing.T) { |
no outgoing calls
no test coverage detected