============================================================================= Delete no-path edge case ============================================================================= Verifies: SYS-REQ-035 [boundary] Delete with no keys returns empty slice.
(t *testing.T)
| 1124 | // Verifies: SYS-REQ-035 [boundary] |
| 1125 | // Delete with no keys returns empty slice. |
| 1126 | func TestDeleteNoPath(t *testing.T) { |
| 1127 | data := []byte(`{"a":1}`) |
| 1128 | result := Delete(data) |
| 1129 | if len(result) != 0 { |
| 1130 | t.Fatalf("Delete with no keys = %q, want empty", string(result)) |
| 1131 | } |
| 1132 | } |
| 1133 | |
| 1134 | // Verifies: SYS-REQ-052 [malformed] |
| 1135 | // MCDC SYS-REQ-052: array_callback_returns_error=T, array_callback_error_is_propagated=T => TRUE |