()
| 77 | |
| 78 | #[test] |
| 79 | fn 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] |
| 104 | fn test_redirects() { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…