You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: rust/src/macros.rs
+10-10
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,15 @@
1
1
//! Macros for defining test cases.
2
-
//!
3
-
//! The `test_case` macro is used to define test cases for a test suite.
2
+
//!
3
+
//! The `test_case` macro is used to define test cases for a test suite.
4
4
5
5
/// Macro for defining test cases, which are automatically registered with the test suite.
6
-
///
6
+
///
7
7
/// A test case can be serialized or non-serialized, require root privileges, and be run on specific file types.
8
8
/// It can also require specific features to be enabled, and have guards which are run before the test case is executed to determine if conditions are met.
9
-
///
9
+
///
10
10
/// The macro supports mutiple parameters which can be combined in a specific order,
11
11
/// for example:
12
-
///
12
+
///
13
13
/// ```rust
14
14
/// // Non-serialized test case
15
15
/// test_case! {
@@ -18,7 +18,7 @@
18
18
/// }
19
19
/// fn basic(_: &mut crate::test::TestContext) {}
20
20
/// ```
21
-
///
21
+
///
22
22
/// ```rust
23
23
/// // Non-serialized test case with required features, guards, and root privileges
0 commit comments