Commit e3d02cc
committed
feat(test-utils): add fixture to set gw name
Adds a fixture so that we can annotate tests such that
we make sure that the gateway name is seen as set from
those tests. Sample:
#[test]
#[wrap(with_gw_name())]
fn test_potato() {
let gw_name = get_gw_name().unwrap();
println!("Hello {gw_name}");
}
This is Daniel's.
Signed-off-by: Fredi Raspall <[email protected]>1 parent 6da2b1a commit e3d02cc
1 file changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
126 | 127 | | |
127 | 128 | | |
128 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
129 | 140 | | |
130 | 141 | | |
131 | 142 | | |
| |||
0 commit comments