feat: remove test bin

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2023-09-24 14:09:24 +02:00
parent 207a6f5c44
commit d37462941c
6 changed files with 21 additions and 52 deletions

View File

@@ -7,8 +7,13 @@ edition = "2021"
[dependencies]
crunch-traits.workspace = true
crunch-file.workspace = true
anyhow.workspace = true
tracing.workspace = true
tokio.workspace = true
async-trait.workspace = true
prost.workspace = true
prost-types.workspace = true
prost-build.workspace = true
bytes.workspace = true

View File

@@ -1,14 +1,15 @@
pub fn add(left: usize, right: usize) -> usize {
left + right
}
#[cfg(test)]
mod tests {
use super::*;
#[tokio::test]
async fn test_can_generate_output_rust() {
let proto_spec = r#"
syntax = "proto3";
#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
package test.can.generate.output.rust;
message MyEvent {
string name = 1;
}
"#;
}
}