Skip to content

Commit

Permalink
Add some more tests
Browse files Browse the repository at this point in the history
Summary: Noticed some missing test coverage, so might as well improve things.

Reviewed By: fgasperij

Differential Revision: D54957073

fbshipit-source-id: 3da824915a8711a515aedb63b13f8d073d64cfef
  • Loading branch information
ndmitchell authored and facebook-github-bot committed Mar 15, 2024
1 parent e672bc3 commit 4cb47fc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions btd/src/sapling/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,11 @@ R quux.js
]
);
}

#[test]
fn test_status_error() {
assert!(parse_status("X quux.js").is_err());
assert!(parse_status("notaline").is_err());
assert!(parse_status("not a line").is_err());
}
}

0 comments on commit 4cb47fc

Please sign in to comment.