We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
BuildStamp::with_prefix
1 parent 2cee8c0 commit e9d3ff7Copy full SHA for e9d3ff7
src/bootstrap/src/utils/build_stamp/tests.rs
@@ -42,3 +42,19 @@ fn test_is_up_to_date() {
42
43
build_stamp.remove().unwrap();
44
}
45
+
46
+#[test]
47
+fn test_with_prefix() {
48
+ let dir = temp_dir();
49
50
+ let stamp = BuildStamp::new(&dir).with_stamp("v1.0.0");
51
+ assert_eq!(stamp.path.file_name().unwrap(), ".stamp");
52
53
+ let stamp = stamp.with_prefix("test");
54
+ let expected_filename = ".test-stamp";
55
+ assert_eq!(stamp.path.file_name().unwrap(), expected_filename);
56
57
+ let stamp = stamp.with_prefix("extra-prefix");
58
+ let expected_filename = ".extra-prefix-test-stamp";
59
60
+}
0 commit comments