aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/package/locker_test.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-21 13:11:49 +0900
committernsfisis <nsfisis@gmail.com>2026-06-21 13:11:49 +0900
commitf0f5f084c883dc4f5b6e61603e82cd1c2092fd9d (patch)
treea8b91efea7f17e61a8d0d9a82604d3ed964010a7 /crates/shirabe/tests/package/locker_test.rs
parentb1571202200e4dc630202928f5ff78959273c7ec (diff)
downloadphp-shirabe-f0f5f084c883dc4f5b6e61603e82cd1c2092fd9d.tar.gz
php-shirabe-f0f5f084c883dc4f5b6e61603e82cd1c2092fd9d.tar.zst
php-shirabe-f0f5f084c883dc4f5b6e61603e82cd1c2092fd9d.zip
test(tests): expand stub macros into plain test functions
The per-file stub!/encode_stub!/etc. macros generated #[ignore]d test functions but obscured the individual test bodies. Expanding them inline removes the macro indirection so future ports can fill in each function directly. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/tests/package/locker_test.rs')
-rw-r--r--crates/shirabe/tests/package/locker_test.rs75
1 files changed, 57 insertions, 18 deletions
diff --git a/crates/shirabe/tests/package/locker_test.rs b/crates/shirabe/tests/package/locker_test.rs
index 4023c10..7b5d39f 100644
--- a/crates/shirabe/tests/package/locker_test.rs
+++ b/crates/shirabe/tests/package/locker_test.rs
@@ -3,23 +3,62 @@
// These construct a Locker with a mocked JsonFile/InstallationManager/repository and a
// mocked ProcessExecutor to drive lock read/write and freshness checks; mocking is not
// available here.
-macro_rules! stub {
- ($name:ident) => {
- #[test]
- #[ignore = "mocks JsonFile/InstallationManager/repository/ProcessExecutor to drive Locker; mocking is not available"]
- fn $name() {
- todo!()
- }
- };
+#[test]
+#[ignore = "mocks JsonFile/InstallationManager/repository/ProcessExecutor to drive Locker; mocking is not available"]
+fn test_is_locked() {
+ todo!()
}
-stub!(test_is_locked);
-stub!(test_get_not_locked_packages);
-stub!(test_get_locked_packages);
-stub!(test_set_lock_data);
-stub!(test_lock_bad_packages);
-stub!(test_is_fresh);
-stub!(test_is_fresh_false);
-stub!(test_is_fresh_with_content_hash);
-stub!(test_is_fresh_with_content_hash_and_no_hash);
-stub!(test_is_fresh_false_with_content_hash);
+#[test]
+#[ignore = "mocks JsonFile/InstallationManager/repository/ProcessExecutor to drive Locker; mocking is not available"]
+fn test_get_not_locked_packages() {
+ todo!()
+}
+
+#[test]
+#[ignore = "mocks JsonFile/InstallationManager/repository/ProcessExecutor to drive Locker; mocking is not available"]
+fn test_get_locked_packages() {
+ todo!()
+}
+
+#[test]
+#[ignore = "mocks JsonFile/InstallationManager/repository/ProcessExecutor to drive Locker; mocking is not available"]
+fn test_set_lock_data() {
+ todo!()
+}
+
+#[test]
+#[ignore = "mocks JsonFile/InstallationManager/repository/ProcessExecutor to drive Locker; mocking is not available"]
+fn test_lock_bad_packages() {
+ todo!()
+}
+
+#[test]
+#[ignore = "mocks JsonFile/InstallationManager/repository/ProcessExecutor to drive Locker; mocking is not available"]
+fn test_is_fresh() {
+ todo!()
+}
+
+#[test]
+#[ignore = "mocks JsonFile/InstallationManager/repository/ProcessExecutor to drive Locker; mocking is not available"]
+fn test_is_fresh_false() {
+ todo!()
+}
+
+#[test]
+#[ignore = "mocks JsonFile/InstallationManager/repository/ProcessExecutor to drive Locker; mocking is not available"]
+fn test_is_fresh_with_content_hash() {
+ todo!()
+}
+
+#[test]
+#[ignore = "mocks JsonFile/InstallationManager/repository/ProcessExecutor to drive Locker; mocking is not available"]
+fn test_is_fresh_with_content_hash_and_no_hash() {
+ todo!()
+}
+
+#[test]
+#[ignore = "mocks JsonFile/InstallationManager/repository/ProcessExecutor to drive Locker; mocking is not available"]
+fn test_is_fresh_false_with_content_hash() {
+ todo!()
+}