We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Testing
Tester
TestingOhkami
TestOhkami
1 parent 4f96fe9 commit 8be9180Copy full SHA for 8be9180
1 file changed
ohkami/src/testing/mod.rs
@@ -37,20 +37,20 @@ use std::collections::HashMap;
37
use std::sync::Arc;
38
use std::{pin::Pin, future::Future, format as f};
39
40
-pub trait Testing {
41
- fn test(self) -> TestingOhkami;
+pub trait Tester {
+ fn test(self) -> TestOhkami;
42
}
43
44
-pub struct TestingOhkami(Arc<Router>);
45
-
46
-impl Testing for Ohkami {
47
- fn test(self) -> TestingOhkami {
+impl Tester for Ohkami {
+ fn test(self) -> TestOhkami {
48
let (f, _) = self.into_router().finalize();
49
- TestingOhkami(Arc::new(f))
+ TestOhkami(Arc::new(f))
50
51
52
53
-impl TestingOhkami {
+pub struct TestOhkami(Arc<Router>);
+
+impl TestOhkami {
54
#[must_use]
55
pub fn oneshot(&self, test_req: TestRequest) -> Oneshot {
56
let router = self.0.clone();
0 commit comments