Skip to content

Commit

Permalink
Merge pull request #38 from hapsoc/more-coverage
Browse files Browse the repository at this point in the history
chore: Add more test coverage
  • Loading branch information
fasterthanlime authored Oct 8, 2023
2 parents f68e4fc + 640d346 commit a0fb5ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ci-test:
# Show coverage locally
cov:
#!/bin/bash -eux
cargo llvm-cov nextest --html --output-dir coverage
cargo llvm-cov nextest --hide-instantiations --html --output-dir coverage

# Run all tests
test *args:
Expand Down
4 changes: 4 additions & 0 deletions tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ async fn server_test_inner(
stream.write_all(SERVER_PAYLOAD).await.unwrap_err();
}
}

assert_eq!(stream.get_ref().1, "server");
assert_eq!(stream.get_mut().1, "server");
assert_eq!(stream.into_raw().1 .1, "server");
}
.instrument(tracing::info_span!("server")),
);
Expand Down

0 comments on commit a0fb5ba

Please sign in to comment.