Skip to content

Commit 64333f1

Browse files
committed
test: restructure tests to use rstest
1 parent 11ae02b commit 64333f1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

modules/analysis/src/endpoints/tests/latest_filters.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -365,13 +365,13 @@ async fn test_tc2677(
365365
/// matches for either latest or non-latest endpoints.
366366
#[test_context(TrustifyContext)]
367367
#[rstest]
368-
#[case( // non-latest
368+
#[case( // latest
369369
Req { what: What::Id("pkg:maven/io.vertx/vertx-core"), ..Req::default() },
370370
0
371371
)]
372-
#[case( // latest
372+
#[case( // non-latest
373373
Req { what: What::Id("pkg:maven/io.vertx/vertx-core"), latest: true, ..Req::default() },
374-
2
374+
0
375375
)]
376376
#[test_log::test(actix_web::test)]
377377
async fn test_tc2717(
@@ -681,6 +681,7 @@ async fn tc_3170_4(ctx: &TrustifyContext) -> Result<(), anyhow::Error> {
681681
Ok(())
682682
}
683683

684+
/// escape values for putting them into a `q` parameter
684685
fn escape_q(q: impl AsRef<str>) -> String {
685686
let q = q.as_ref();
686687

0 commit comments

Comments
 (0)