MCPcopy Create free account
hub / github.com/untitaker/hyperlink / test_version

Function test_version

tests/cli_snapshots.rs:79–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77
78#[test]
79fn test_version() {
80 let mut settings = insta::Settings::clone_current();
81 settings.add_filter(r"hyperlink [.\d]+", "hyperlink [VERSION]");
82 let _guard = settings.bind_to_scope();
83
84 assert_cmd_snapshot!(cli().arg("-V"), @r###"
85 success: true
86 exit_code: 0
87 ----- stdout -----
88 hyperlink [VERSION]
89
90 ----- stderr -----
91 "###);
92
93 assert_cmd_snapshot!(cli().arg("--version"), @r###"
94 success: true
95 exit_code: 0
96 ----- stdout -----
97 hyperlink [VERSION]
98
99 ----- stderr -----
100 "###);
101}
102
103#[test]
104fn test_redirects() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…