2022-11-22 16:25:57 -08:00
|
|
|
use super::*;
|
|
|
|
|
|
|
|
#[test]
|
2022-12-20 00:44:19 -08:00
|
|
|
fn private_attribute_for_recipe() {
|
2022-11-22 16:25:57 -08:00
|
|
|
Test::new()
|
|
|
|
.justfile(
|
|
|
|
"
|
|
|
|
[private]
|
|
|
|
foo:
|
|
|
|
",
|
|
|
|
)
|
|
|
|
.args(&["--list"])
|
|
|
|
.stdout(
|
|
|
|
"
|
|
|
|
Available recipes:
|
|
|
|
",
|
|
|
|
)
|
|
|
|
.run();
|
|
|
|
}
|
2022-12-20 00:44:19 -08:00
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn private_attribute_for_alias() {
|
|
|
|
Test::new()
|
|
|
|
.justfile(
|
|
|
|
"
|
|
|
|
[private]
|
|
|
|
alias f := foo
|
|
|
|
|
|
|
|
foo:
|
|
|
|
",
|
|
|
|
)
|
|
|
|
.args(&["--list"])
|
|
|
|
.stdout(
|
|
|
|
"
|
|
|
|
Available recipes:
|
|
|
|
foo
|
|
|
|
",
|
|
|
|
)
|
|
|
|
.run();
|
|
|
|
}
|