├── .github └── workflows │ └── test.yaml ├── .gitignore ├── .pre-commit-config.yaml ├── Cargo.lock ├── Cargo.toml ├── LICENSE ├── README.md ├── src ├── differs.rs ├── lib.rs └── mint.rs └── tests ├── .gitignore ├── goldenfiles ├── binary_content_diff.bin ├── binary_match1.bin ├── binary_match2.bin ├── binary_size_diff.bin ├── empty.txt ├── file1.txt ├── file2.txt ├── goldenpath.txt ├── invalid_utf8.txt ├── match1.txt ├── match2.txt ├── nonempty.txt ├── panic.txt ├── subdir │ └── file1.txt ├── text_diff1.txt ├── text_diff2.txt ├── update1.txt ├── update2.txt ├── update_env1.txt └── update_env2.txt └── test.rs /.github/workflows/test.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calder/rust-goldenfile/HEAD/.github/workflows/test.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /cobertura.xml 2 | /target 3 | -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calder/rust-goldenfile/HEAD/.pre-commit-config.yaml -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calder/rust-goldenfile/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calder/rust-goldenfile/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calder/rust-goldenfile/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calder/rust-goldenfile/HEAD/README.md -------------------------------------------------------------------------------- /src/differs.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calder/rust-goldenfile/HEAD/src/differs.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calder/rust-goldenfile/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/mint.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calder/rust-goldenfile/HEAD/src/mint.rs -------------------------------------------------------------------------------- /tests/.gitignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/goldenfiles/binary_content_diff.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /tests/goldenfiles/binary_match1.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/goldenfiles/binary_match2.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /tests/goldenfiles/binary_size_diff.bin: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /tests/goldenfiles/empty.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/goldenfiles/file1.txt: -------------------------------------------------------------------------------- 1 | Hello world! 2 | -------------------------------------------------------------------------------- /tests/goldenfiles/file2.txt: -------------------------------------------------------------------------------- 1 | Foo bar! 2 | -------------------------------------------------------------------------------- /tests/goldenfiles/goldenpath.txt: -------------------------------------------------------------------------------- 1 | Hello world! 2 | -------------------------------------------------------------------------------- /tests/goldenfiles/invalid_utf8.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calder/rust-goldenfile/HEAD/tests/goldenfiles/invalid_utf8.txt -------------------------------------------------------------------------------- /tests/goldenfiles/match1.txt: -------------------------------------------------------------------------------- 1 | Hello world! 2 | -------------------------------------------------------------------------------- /tests/goldenfiles/match2.txt: -------------------------------------------------------------------------------- 1 | foobar 2 | -------------------------------------------------------------------------------- /tests/goldenfiles/nonempty.txt: -------------------------------------------------------------------------------- 1 | Some content 2 | -------------------------------------------------------------------------------- /tests/goldenfiles/panic.txt: -------------------------------------------------------------------------------- 1 | old 2 | -------------------------------------------------------------------------------- /tests/goldenfiles/subdir/file1.txt: -------------------------------------------------------------------------------- 1 | File in subdir 2 | -------------------------------------------------------------------------------- /tests/goldenfiles/text_diff1.txt: -------------------------------------------------------------------------------- 1 | Hello world! 2 | -------------------------------------------------------------------------------- /tests/goldenfiles/text_diff2.txt: -------------------------------------------------------------------------------- 1 | foobar 2 | -------------------------------------------------------------------------------- /tests/goldenfiles/update1.txt: -------------------------------------------------------------------------------- 1 | Hello world! 2 | -------------------------------------------------------------------------------- /tests/goldenfiles/update2.txt: -------------------------------------------------------------------------------- 1 | foobar 2 | -------------------------------------------------------------------------------- /tests/goldenfiles/update_env1.txt: -------------------------------------------------------------------------------- 1 | Hello world! 2 | -------------------------------------------------------------------------------- /tests/goldenfiles/update_env2.txt: -------------------------------------------------------------------------------- 1 | foobar 2 | -------------------------------------------------------------------------------- /tests/test.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calder/rust-goldenfile/HEAD/tests/test.rs --------------------------------------------------------------------------------