Initial valve setup and tf2 game setup

This commit is contained in:
CosminPerRam 2022-10-15 22:20:01 +03:00
parent e2be20ee53
commit 8098136d09
10 changed files with 234 additions and 12 deletions

15
tests/test.rs Normal file
View file

@ -0,0 +1,15 @@
#[cfg(test)]
mod tests {
use gamedig::protocols::valve::ValveProtocol;
#[test]
fn tf2() {
let response = ValveProtocol::query("5.15.202.107", 27015);
match response {
Err(_) => println!("fuck"),
Ok(r) => println!("{}", r.name)
}
assert_eq!(4, 4);
}
}