Skip to content

Commit b9e9620

Browse files
committed
docs(guide/dev): use generic pdu_test_skip_* name in example
https://claude.ai/code/session_0184ceZayyCwvK7PEF9iB7K3
1 parent dc52386 commit b9e9620

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,13 +234,13 @@ fn block_size() { /* uses GetBlockSize which only exists on unix */ }
234234

235235
// Good — test compiles with the flag, skipped at runtime
236236
#[test]
237-
#[cfg_attr(pdu_test_skip_fs_errors, ignore = "pdu_test_skip_fs_errors is set")]
238-
fn fs_errors() { /* ... */ }
237+
#[cfg_attr(pdu_test_skip_some_test, ignore = "pdu_test_skip_some_test is set")]
238+
fn some_test() { /* ... */ }
239239

240240
// Bad — excludes the test from compilation entirely when it could still compile
241-
#[cfg(not(pdu_test_skip_fs_errors))]
241+
#[cfg(not(pdu_test_skip_some_test))]
242242
#[test]
243-
fn fs_errors() { /* ... */ }
243+
fn some_test() { /* ... */ }
244244
```
245245

246246
### Using `pipe-trait`

0 commit comments

Comments
 (0)