test: move compat tests into the packages they cover (#669)

The pipeline goldens now live in app, export in export, and keys.json in masterkey, each with its own
testdata; cmd keeps the flag and list goldens. Shared fixtures and golden helpers became the
internal/browser/browsertest and internal/golden packages. The binary is byte-identical.
This commit is contained in:
Roger authored and GitHub committed 2026-10-29 16:12:50 +08:00
1 parent c0a03769f1
commit 07b66adc4d
40 files changed
+190 -125

No files matched your search

+46
View File
@@ -0,0 +1,46 @@
hack-browser-data --browser -b string "all"
hack-browser-data --category -c string "all"
hack-browser-data --dir -d string "results"
hack-browser-data --format -f string "json"
hack-browser-data --help -h bool "false"
hack-browser-data --keychain-pw string ""
hack-browser-data --keychain-pw-stdin bool "false"
hack-browser-data --profile-path -p string ""
hack-browser-data --verbose -v bool "false" persistent
hack-browser-data --zip bool "false"
hack-browser-data archive --browser -b string "all"
hack-browser-data archive --category -c string "all"
hack-browser-data archive --help -h bool "false"
hack-browser-data archive --output -o string "browser-data.zip"
hack-browser-data archive --verbose -v bool "false" inherited
hack-browser-data dump --browser -b string "all"
hack-browser-data dump --category -c string "all"
hack-browser-data dump --dir -d string "results"
hack-browser-data dump --format -f string "json"
hack-browser-data dump --help -h bool "false"
hack-browser-data dump --keychain-pw string ""
hack-browser-data dump --keychain-pw-stdin bool "false"
hack-browser-data dump --profile-path -p string ""
hack-browser-data dump --zip bool "false"
hack-browser-data dump --verbose -v bool "false" inherited
hack-browser-data dumpkeys --browser -b string "all"
hack-browser-data dumpkeys --help -h bool "false"
hack-browser-data dumpkeys --keychain-pw string ""
hack-browser-data dumpkeys --keychain-pw-stdin bool "false"
hack-browser-data dumpkeys --output -o string ""
hack-browser-data dumpkeys --verbose -v bool "false" inherited
hack-browser-data list --detail bool "false"
hack-browser-data list --help -h bool "false"
hack-browser-data list --verbose -v bool "false" inherited
hack-browser-data restore --browser -b string ""
hack-browser-data restore --category -c string "all"
hack-browser-data restore --data-dir string ""
hack-browser-data restore --data-zip string ""
hack-browser-data restore --dir -d string "results"
hack-browser-data restore --format -f string "json"
hack-browser-data restore --help -h bool "false"
hack-browser-data restore --keys string ""
hack-browser-data restore --zip bool "false"
hack-browser-data restore --verbose -v bool "false" inherited
hack-browser-data version --help -h bool "false"
hack-browser-data version --verbose -v bool "false" inherited
+7
View File
@@ -0,0 +1,7 @@
Browser Profile password cookie bookmark history download creditcard extension localstorage sessionstorage
Chrome Default 3 4 3 3 2 2 3 5 3
Chrome Profile 1 2 4 3 3 2 2 3 5 3
Microsoft Edge Default 3 4 3 3 2 2 3 5 3
Microsoft Edge Profile 1 2 4 3 3 2 2 3 5 3
Firefox abcd1234.default-release 3 4 4 9 3 0 2 3 0
Firefox wxyz5678.work 3 4 4 9 3 0 2 3 0
@@ -0,0 +1,4 @@
Browser Profile password cookie bookmark history download creditcard extension localstorage sessionstorage
Safari default 0 4 6 4 2 0 4 4 0
Safari Work 0 2 0 2 1 0 0 1 0
Safari profile-9a1b2c3d 0 0 0 1 0 0 0 0 0
+4
View File
@@ -0,0 +1,4 @@
Browser Profile Path
Safari default <library>/Safari
Safari Work <library>/Containers/com.apple.Safari/Data/Library/Safari/Profiles/5604E6F5-02ED-4E40-8249-63DE7BC986C8
Safari profile-9a1b2c3d <library>/Containers/com.apple.Safari/Data/Library/Safari/Profiles/9A1B2C3D-4E5F-4A6B-8C7D-0E1F2A3B4C5D
+7
View File
@@ -0,0 +1,7 @@
Browser Profile Path
Chrome Default <chrome>/Default
Chrome Profile 1 <chrome>/Profile 1
Microsoft Edge Default <edge>/Default
Microsoft Edge Profile 1 <edge>/Profile 1
Firefox abcd1234.default-release <firefox>/abcd1234.default-release
Firefox wxyz5678.work <firefox>/wxyz5678.work