mirror of
https://github.com/sharkdp/bat.git
synced 2025-09-02 03:12:25 +01:00
test: code coverage for list-languages parameter
This commit is contained in:
committed by
Martin Nordholts
parent
f1d45da676
commit
9121746f05
@@ -23,6 +23,7 @@
|
|||||||
- CICD: Stop building for x86_64-pc-windows-gnu which fails #3261 (Enselic)
|
- CICD: Stop building for x86_64-pc-windows-gnu which fails #3261 (Enselic)
|
||||||
- CICD: CICD: replace windows-2019 runners with windows-2025 #3339 (@cyqsimon)
|
- CICD: CICD: replace windows-2019 runners with windows-2025 #3339 (@cyqsimon)
|
||||||
- Build script: replace string-based codegen with quote-based codegen #3340 (@cyqsimon)
|
- Build script: replace string-based codegen with quote-based codegen #3340 (@cyqsimon)
|
||||||
|
- Improve code coverage of `--list-languages` parameter #2942 (@sblondon)
|
||||||
|
|
||||||
## Syntaxes
|
## Syntaxes
|
||||||
|
|
||||||
|
@@ -353,6 +353,15 @@ fn list_themes_to_piped_output() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn list_languages() {
|
||||||
|
bat()
|
||||||
|
.arg("--list-languages")
|
||||||
|
.assert()
|
||||||
|
.success()
|
||||||
|
.stdout(predicate::str::contains("Rust").normalize());
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg_attr(
|
#[cfg_attr(
|
||||||
any(not(feature = "git"), feature = "lessopen", target_os = "windows"),
|
any(not(feature = "git"), feature = "lessopen", target_os = "windows"),
|
||||||
|
Reference in New Issue
Block a user