Skip to content

Commit

Permalink
ci flag doc
Browse files Browse the repository at this point in the history
  • Loading branch information
aborgna-q committed Oct 4, 2023
1 parent c026a5f commit 36f96a5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ pub(crate) mod test {
/// Open a browser page to render a dot string graph.
///
/// This can be used directly on the output of `Hugr::dot_string`
///
/// Only for use in local testing. Will fail to compile on CI.
#[cfg(not(ci_run))]
pub(crate) fn viz_dotstr(dotstr: impl AsRef<str>) {
let mut base: String = "https://dreampuf.github.io/GraphvizOnline/#".into();
Expand All @@ -50,6 +52,8 @@ pub(crate) mod test {
}

/// Open a browser page to render a HugrView's dot string graph.
///
/// Only for use in local testing. Will fail to compile on CI.
#[cfg(not(ci_run))]
pub(crate) fn viz_hugr(hugr: &impl HugrView) {
viz_dotstr(hugr.dot_string());
Expand Down

0 comments on commit 36f96a5

Please sign in to comment.