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:
|
|
|
|
",
|
|
|
|
)
|
2023-01-03 22:31:56 -08:00
|
|
|
.args(["--list"])
|
2022-11-22 16:25:57 -08:00
|
|
|
.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:
|
|
|
|
",
|
|
|
|
)
|
2023-01-03 22:31:56 -08:00
|
|
|
.args(["--list"])
|
2022-12-20 00:44:19 -08:00
|
|
|
.stdout(
|
|
|
|
"
|
|
|
|
Available recipes:
|
|
|
|
foo
|
|
|
|
",
|
|
|
|
)
|
|
|
|
.run();
|
|
|
|
}
|