commit e57c1e0272010b68073554ed5388bf7bac9b688a
parent 055ea7374b4b29e5c29c3f93a987b8990e4fa807
Author: triesap <tyson@radroots.org>
Date: Sun, 22 Mar 2026 15:02:35 +0000
tests: add approved fixture audit
Diffstat:
2 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
@@ -2905,6 +2905,7 @@ dependencies = [
"log",
"radroots-app-apple-security",
"radroots-app-core",
+ "radroots-app-test-support",
"radroots-geocoder",
"radroots-identity",
"radroots-nostr-accounts",
diff --git a/scripts/verify-approved-test-fixtures.sh b/scripts/verify-approved-test-fixtures.sh
@@ -0,0 +1,17 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
+cd "$repo_root"
+
+if rg -n \
+ --glob '*.rs' \
+ --glob '*.kt' \
+ --glob '*.swift' \
+ --glob '*.sh' \
+ --glob '!scripts/verify-approved-test-fixtures.sh' \
+ 'npub1abc|nsec1example' \
+ crates native platforms scripts; then
+ echo "found banned placeholder fixture literals" >&2
+ exit 1
+fi