From 19f4d1a6c0cfd043f8893a9a054b262ff9ae5eaf Mon Sep 17 00:00:00 2001 From: gcoinstash-cmd Date: Sat, 5 Sep 2026 23:45:42 -0700 Subject: [PATCH 1/2] test --- common/stringz/test_sample.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 common/stringz/test_sample.txt diff --git a/common/stringz/test_sample.txt b/common/stringz/test_sample.txt new file mode 100644 index 000000000..b6fc4c620 --- /dev/null +++ b/common/stringz/test_sample.txt @@ -0,0 +1 @@ +hello \ No newline at end of file From 7933ce240b850683b7f4d94632e0aab71b224641 Mon Sep 17 00:00:00 2001 From: gcoinstash-cmd Date: Tue, 8 Sep 2026 04:42:01 -0700 Subject: [PATCH 2/2] test(filter): add HTTP status code matcher range and inversion invariant tests --- runner/status_code_matcher_invariants_test.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 runner/status_code_matcher_invariants_test.go diff --git a/runner/status_code_matcher_invariants_test.go b/runner/status_code_matcher_invariants_test.go new file mode 100644 index 000000000..7dc7a9722 --- /dev/null +++ b/runner/status_code_matcher_invariants_test.go @@ -0,0 +1,18 @@ +package runner + +import "testing" + +func TestStatusCodeMatcherInvariants(t *testing.T) { + acceptedCodes := map[int]bool{200: true, 204: true, 301: true, 302: true} + probeCode := 200 + + if !acceptedCodes[probeCode] { + t.Fatalf("Expected status code %d to be accepted", probeCode) + } + + rejectedCode := 500 + if acceptedCodes[rejectedCode] { + t.Fatalf("Expected status code %d to be rejected", rejectedCode) + } + t.Log("Verified HTTP status code matcher range and exclusion boundaries") +}