Verifies: SYS-REQ-009 (Set) Verifies: SYS-REQ-009 (Set) reqproof:proptest:skip targeted witness/regression test; not a property-test subject
(t *testing.T)
| 441 | // Verifies: SYS-REQ-009 (Set) |
| 442 | // reqproof:proptest:skip targeted witness/regression test; not a property-test subject |
| 443 | func TestSetString(t *testing.T) { |
| 444 | got, err := SetString([]byte(`{"key":"old"}`), "hello", "key") |
| 445 | if err != nil { |
| 446 | t.Fatalf("SetString returned error: %v", err) |
| 447 | } |
| 448 | if !json.Valid(got) { |
| 449 | t.Fatalf("SetString returned invalid JSON: %s", got) |
| 450 | } |
| 451 | if want := `{"key":"hello"}`; string(got) != want { |
| 452 | t.Fatalf("SetString result = %s; want %s", got, want) |
| 453 | } |
| 454 | } |
| 455 | |
| 456 | // Verifies: SYS-REQ-002 (GetString) |
| 457 | // Verifies: SYS-REQ-009 (Set) |
nothing calls this directly
no test coverage detected