mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-08 22:21:45 +00:00
Make RunSpec example a checked doctest
This commit is contained in:
parent
19aa5940ea
commit
1898031d74
1 changed files with 4 additions and 2 deletions
|
|
@ -27,11 +27,13 @@ pub fn test_run_provenance() -> RunProvenance {
|
|||
///
|
||||
/// Spread it so a test only spells out the fields it actually asserts on:
|
||||
///
|
||||
/// ```ignore
|
||||
/// ```
|
||||
/// # use fabro_types::{RunSpec, test_support};
|
||||
/// let spec = RunSpec {
|
||||
/// workflow_slug: Some("release-flow".to_string()),
|
||||
/// ..test_run_spec()
|
||||
/// ..test_support::test_run_spec()
|
||||
/// };
|
||||
/// # assert_eq!(spec.workflow_slug.as_deref(), Some("release-flow"));
|
||||
/// ```
|
||||
#[must_use]
|
||||
pub fn test_run_spec() -> RunSpec {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue