mirror of
https://github.com/Noratrieb/haesli.git
synced 2026-01-16 12:45:04 +01:00
write some tests
This commit is contained in:
parent
5a99ae4cd2
commit
b63b2dee2a
7 changed files with 172 additions and 17 deletions
|
|
@ -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")),
|
||||
])
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue