-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat BREAKING: changed
wick query
from jaq to liquid
- Loading branch information
Showing
13 changed files
with
141 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,6 @@ | ||
static DIR: &str = "invoke"; | ||
mod utils; | ||
|
||
#[rstest::rstest] | ||
#[case("v1-wasmrs.toml")] | ||
#[case("stdin.toml")] | ||
#[case("app.toml")] | ||
fn wick_invoke(#[case] file: &'static str) { | ||
let kind = "unit"; | ||
let file = format!("tests/{}/{}/{}", DIR, kind, file); | ||
|
||
trycmd::TestCases::new().case(file); | ||
} | ||
|
||
// mod integration_test { | ||
// use super::DIR; | ||
// #[rstest::rstest] | ||
// #[case("postgres.toml")] | ||
// fn wick_run(#[case] file: &'static str) { | ||
// let kind = "integration"; | ||
// let file = format!("tests/{}/{}/{}", kind, DIR, file); | ||
// trycmd::TestCases::new().case(file); | ||
// } | ||
// } | ||
utils::test_cases!( | ||
unit: ["v1-wasmrs.toml", "stdin.toml", "app.toml"], | ||
integration: [] | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,15 @@ | ||
static DIR: &str = "new"; | ||
mod utils; | ||
|
||
#[rstest::rstest] | ||
#[case("app.toml")] | ||
#[case("app-cli.toml")] | ||
#[case("app-http.toml")] | ||
#[case("app-time.toml")] | ||
#[case("component-composite.toml")] | ||
#[case("component-sql.toml")] | ||
#[case("component-http.toml")] | ||
#[case("component-wasm.toml")] | ||
fn wick_new(#[case] file: &'static str) { | ||
let kind = "unit"; | ||
let file = format!("tests/{}/{}/{}", DIR, kind, file); | ||
|
||
trycmd::TestCases::new().case(file); | ||
} | ||
|
||
// mod integration_test { | ||
// use super::DIR; | ||
// #[rstest::rstest] | ||
// fn wick_run(#[case] file: &'static str) { | ||
// let kind = "integration"; | ||
// let file = format!("tests/{}/{}/{}", kind, DIR, file); | ||
// trycmd::TestCases::new().case(file); | ||
// } | ||
// } | ||
utils::test_cases!( | ||
unit: [ | ||
"app.toml", | ||
"app-cli.toml", | ||
"app-http.toml", | ||
"app-time.toml", | ||
"component-composite.toml", | ||
"component-sql.toml", | ||
"component-http.toml", | ||
"component-wasm.toml" | ||
], | ||
integration: [] | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
mod utils; | ||
|
||
utils::test_cases!( | ||
unit: [ | ||
"jq-style.toml", "no-curlies.toml", "with-curlies.toml" | ||
], | ||
integration: [] | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#:schema https://raw.githubusercontent.com/assert-rs/trycmd/main/schema.json | ||
bin.name = "wick" | ||
args = ["query", "-f", "Cargo.toml", " .package.name "] | ||
stdout = """ | ||
wick-cli | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#:schema https://raw.githubusercontent.com/assert-rs/trycmd/main/schema.json | ||
bin.name = "wick" | ||
args = ["query", "-f", "Cargo.toml", " package.name "] | ||
stdout = """ | ||
wick-cli | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#:schema https://raw.githubusercontent.com/assert-rs/trycmd/main/schema.json | ||
bin.name = "wick" | ||
args = ["query", "-f", "Cargo.toml", " {{ package.name }} "] | ||
stdout = """ | ||
wick-cli[..] | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,18 @@ | ||
static DIR: &str = "run"; | ||
mod utils; | ||
|
||
#[rstest::rstest] | ||
#[case("anonymous-component.toml")] | ||
#[case("imported-component.toml")] | ||
#[case("stdin.toml")] | ||
#[case("file-reader.toml")] | ||
#[case("file-reader-lockdown-fail.toml")] | ||
#[case("file-reader-lockdown-pass.toml")] | ||
#[case("file-reader-lockdown-pass-wildcard-dir.toml")] | ||
#[case("file-reader-lockdown-pass-wildcard-components.toml")] | ||
fn wick_run(#[case] file: &'static str) { | ||
let kind = "unit"; | ||
let file = format!("tests/{}/{}/{}", DIR, kind, file); | ||
utils::test_cases!( | ||
unit: [ | ||
"anonymous-component.toml", | ||
"imported-component.toml", | ||
"stdin.toml", | ||
"file-reader.toml", | ||
"file-reader-lockdown-fail.toml", | ||
"file-reader-lockdown-pass.toml", | ||
"file-reader-lockdown-pass-wildcard-dir.toml", | ||
"file-reader-lockdown-pass-wildcard-components.toml", | ||
|
||
trycmd::TestCases::new().case(file); | ||
} | ||
|
||
mod integration_test { | ||
use super::DIR; | ||
#[rstest::rstest] | ||
#[case("postgres.toml")] | ||
fn wick_run(#[case] file: &'static str) { | ||
let kind = "integration"; | ||
let file = format!("tests/{}/{}/{}", DIR, kind, file); | ||
trycmd::TestCases::new().case(file); | ||
} | ||
} | ||
], | ||
integration: [ | ||
"postgres.toml" | ||
] | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,9 @@ | ||
static DIR: &str = "test"; | ||
mod utils; | ||
|
||
#[rstest::rstest] | ||
#[case("wasm.toml")] | ||
fn wick_run(#[case] file: &'static str) { | ||
let kind = "unit"; | ||
let file = format!("tests/{}/{}/{}", DIR, kind, file); | ||
|
||
trycmd::TestCases::new().case(file); | ||
} | ||
|
||
// mod integration_test { | ||
// use super::DIR; | ||
// #[rstest::rstest] | ||
// fn wick_run(#[case] file: &'static str) { | ||
// let kind = "integration"; | ||
// let file = format!("tests/{}/{}/{}", kind, DIR, file); | ||
// trycmd::TestCases::new().case(file); | ||
// } | ||
// } | ||
utils::test_cases!( | ||
unit: [ | ||
"wasm.toml" | ||
], | ||
integration: [ | ||
] | ||
); |
Oops, something went wrong.