write some tests

This commit is contained in:
nora 2022-02-14 22:56:07 +01:00
parent 5a99ae4cd2
commit b63b2dee2a
7 changed files with 172 additions and 17 deletions

View file

@ -63,12 +63,12 @@ impl Connection {
let mut payload = Vec::with_capacity(64);
classes::write::write_method(start_method, &mut payload)?;
frame::write_frame(
&mut self.stream,
&Frame {
kind: FrameType::Method,
channel: 0,
payload,
},
&mut self.stream,
)
.await?;
@ -132,12 +132,12 @@ fn server_properties(host: SocketAddr) -> classes::Table {
};
HashMap::from([
("host".to_string(), host_value),
("product".to_string(), ss("no name yet")),
//("host".to_string(), host_value),
//("product".to_string(), ss("no name yet")),
("version".to_string(), ss("0.1.0")),
("platform".to_string(), ss("microsoft linux")),
("copyright".to_string(), ss("MIT")),
("information".to_string(), ss("hello reader")),
("uwu".to_string(), ss("owo")),
//("platform".to_string(), ss("microsoft linux")),
//("copyright".to_string(), ss("MIT")),
//("information".to_string(), ss("hello reader")),
//("uwu".to_string(), ss("owo")),
])
}