Skip to content

Commit 7895d10

Browse files
vellemeta-codesync[bot]
authored andcommitted
Fixed docstrings, removed all warnings (#37)
Summary: I fixed the doc strings that caused Unresolved Link warnings. Now runs without warnings: cargo doc cargo test --doc Pull Request resolved: #37 Reviewed By: ukautz Differential Revision: D84397257 Pulled By: richardjrossiii fbshipit-source-id: b5b4da09a1b52e2499d90893c2d74617a636d279
1 parent f33a371 commit 7895d10

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

src/executors/bash_runner.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ pub const BASH_EXCLUDED_VARIABLES: &[&str] = &[
5151

5252
const BASH_TEMPLATE: &str = include_str!("bash_runner.template");
5353

54-
/// A [`Runner`], that is intended to run a series of contextual related [`Execution`]s, which
54+
/// A [`Runner`], that is intended to run a series of contextual related
55+
/// [`crate::executors::execution::Execution`]s, which
5556
/// that ought to share the same environmental context (environment variables, shell
5657
/// variables, shopt, set, functions and aliases).
5758
///
@@ -67,7 +68,7 @@ const BASH_TEMPLATE: &str = include_str!("bash_runner.template");
6768
/// This Runner is not concurrency-safe (the shared state directory with the `state` file mandates
6869
/// sequential, isolated execution).
6970
///
70-
/// Underlying the [`ThreadedRunner`] is used, so timeout constraints are fully supported.
71+
/// Underneath the [`SubprocessRunner`] is used, so timeout constraints are fully supported.
7172
#[derive(Clone)]
7273
pub struct BashRunner {
7374
pub shell: PathBuf,

src/executors/mod.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,8 @@
1414
//! described in the [`crate::executors::executor::Executor`] trait.
1515
//!
1616
//! Currently there are two implementations available:
17-
//! - [`crate::executors::sequential_shell`], which runs executions from within
18-
//! a file sequentially, allowing for shared state (environment variables,
19-
//! aliases) to be "passed down"
20-
//! - [`crate::executors::parallel_shell`], which runs executions from within
21-
//! a file in parallel, returning results quickly, but not supporting shared
22-
//! state in between
17+
//! - [`crate::executors::bash_script_executor::BashScriptExecutor`]
18+
//! - [`crate::executors::stateful_executor::StatefulExecutor`]
2319
2420
use std::path::Path;
2521

src/parsers/markdown.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,13 @@ pub(crate) enum MarkdownToken {
161161

162162
/// The parsed contents of a code block within backticks, representing a Scrut test:
163163
///
164+
/// ````markdown
164165
/// ```scrut { ... config ..}
165166
/// # comment
166167
/// $ shell expression
167168
/// output expectations
168169
/// ```
170+
/// ````
169171
TestCodeBlock {
170172
/// The used language token of the test (i.e. `scrut`)
171173
language: String,

src/renderers/diff.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use crate::outcome::Outcome;
2121
use crate::parsers::parser::ParserType;
2222

2323
/// Renderer that uses the traditional Diff render format
24-
/// See: https://en.wikipedia.org/wiki/Diff
24+
/// See: <https://en.wikipedia.org/wiki/Diff>
2525
pub struct DiffRenderer {}
2626

2727
impl DiffRenderer {

src/renderers/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
//! This module is concerned with rendering the [`outcome::Outcome`] of test
8+
//! This module is concerned with rendering the [`crate::outcome::Outcome`] of test
99
//! executions.
1010
1111
pub mod diff;

0 commit comments

Comments
 (0)