mirror of
https://github.com/casey/just
synced 2024-09-06 00:39:13 +00:00
41 lines
493 B
Rust
41 lines
493 B
Rust
use super::*;
|
|
|
|
#[test]
|
|
fn private_attribute_for_recipe() {
|
|
Test::new()
|
|
.justfile(
|
|
"
|
|
[private]
|
|
foo:
|
|
",
|
|
)
|
|
.args(&["--list"])
|
|
.stdout(
|
|
"
|
|
Available recipes:
|
|
",
|
|
)
|
|
.run();
|
|
}
|
|
|
|
#[test]
|
|
fn private_attribute_for_alias() {
|
|
Test::new()
|
|
.justfile(
|
|
"
|
|
[private]
|
|
alias f := foo
|
|
|
|
foo:
|
|
",
|
|
)
|
|
.args(&["--list"])
|
|
.stdout(
|
|
"
|
|
Available recipes:
|
|
foo
|
|
",
|
|
)
|
|
.run();
|
|
}
|