Skip to content

Commit

Permalink
test: reset test
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Aug 28, 2024
1 parent b608a73 commit 131cb0a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/cli/args/backend_arg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,13 @@ static REGISTRY_BACKEND_MAP: Lazy<HashMap<&'static str, BackendArg>> = Lazy::new

#[cfg(test)]
mod tests {
use pretty_assertions::{assert_eq, assert_str_eq};

use super::*;
use crate::test::reset;
use pretty_assertions::{assert_eq, assert_str_eq};

#[test]
fn test_backend_arg() {
reset();
let t = |s: &str, id, name, t| {
let fa: BackendArg = s.into();
assert_str_eq!(fa.full, id);
Expand Down Expand Up @@ -141,6 +142,7 @@ mod tests {

#[test]
fn test_backend_arg_pathname() {
reset();
let t = |s: &str, expected| {
let fa: BackendArg = s.into();
let actual = fa.installs_path.to_string_lossy();
Expand Down

0 comments on commit 131cb0a

Please sign in to comment.