Skip to content

Commit

Permalink
Added built-on-win snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
prsabahrami committed Nov 27, 2024
1 parent c2c1eea commit 79ae7fa
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,14 @@ async fn test_reproducible_shasum(
assert!(pack_result.is_ok(), "{:?}", pack_result);

let sha256_digest = sha256_digest_bytes(&output_file);

#[cfg(target_os = "windows")]
insta::assert_snapshot!(
format!("built-on-win__sha256-{}-executable", platform),
&sha256_digest
);

#[cfg(not(target_os = "windows"))]
insta::assert_snapshot!(format!("sha256-{}-executable", platform), &sha256_digest);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
source: tests/integration_test.rs
assertion_line: 358
expression: "&sha256_digest"
snapshot_kind: text
---
70E755F220504E2087A86C2E5EAFEF96DC2F0EBB57FE11E4F081E2BA6829AD7B
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
source: tests/integration_test.rs
assertion_line: 358
expression: "&sha256_digest"
snapshot_kind: text
---
FF10C491ED694EAFD369BEDC4F49EBB390221B3FAD3C5CC1EDFE4B0E27D77BE3
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
source: tests/integration_test.rs
assertion_line: 358
expression: "&sha256_digest"
snapshot_kind: text
---
B98E3FFCAB16267FC3907628A26192D90E3984E9606F01D2988F6A5779104FF0
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
source: tests/integration_test.rs
assertion_line: 358
expression: "&sha256_digest"
snapshot_kind: text
---
180D5BE5C4F3756782806D7B2DCFED3A10154AC5A4205CBC91AD9DC812317820

0 comments on commit 79ae7fa

Please sign in to comment.