Skip to content

Commit

Permalink
use /dev/null as a test path as suggested in #93
Browse files Browse the repository at this point in the history
  • Loading branch information
sminez committed Feb 20, 2025
1 parent 51bf009 commit 5fc3044
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/buffer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1357,8 +1357,8 @@ pub(crate) mod tests {
#[test_case("README.md", Some("README.md"); "file that exists")]
#[test_case("README.md:12,19", Some("README.md:12,19"); "file that exists with addr")]
#[test_case("README.md:12:19", Some("README.md:12:19"); "file that exists with addr containing colon")]
#[test_case("/usr/bin/sh", Some("/usr/bin/sh"); "file that exists abs path")]
#[test_case("/usr/bin/sh:12-+#", Some("/usr/bin/sh:12-+#"); "file that exists abs path with addr")]
#[test_case("/dev/null", Some("/dev/null"); "file that exists abs path")]
#[test_case("/dev/null:12-+#", Some("/dev/null:12-+#"); "file that exists abs path with addr")]
#[test_case("http://example.com", Some("http://example.com"); "http url")]
#[test_case("http://example.com/some/path", Some("http://example.com/some/path"); "http url with path")]
#[test_case("http://example.com?foo=1", Some("http://example.com?foo=1"); "http url with query string")]
Expand Down

0 comments on commit 5fc3044

Please sign in to comment.