1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */

use crate::auth::TestClient;

// A (name, test_func) tuple. Eventually we should allow for more/less
// than 2 clients, and maybe this should be a trait or something.
type Test = (&'static str, fn(&mut TestClient, &mut TestClient));

pub struct TestGroup {
    pub name: &'static str,
    pub tests: Vec<Test>,
}

impl TestGroup {
    pub fn new(name: &'static str, tests: Vec<Test>) -> Self {
        Self { name, tests }
    }
}