about summary refs log tree commit diff
path: root/tvix/store/src/main.rs
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2022-12-29T11·05+0100
committerflokli <flokli@flokli.de>2022-12-29T12·07+0000
commitff71366f41daa0da09c1e4304ed05cdc908612cb (patch)
tree0c7504517e422b8c851c34bcee828f2ae2ff372a /tvix/store/src/main.rs
parent56555b211ee2896999ad457cabc02e411ca54f40 (diff)
chore(tvix/store): move tests into separate file r/5531
Move them from the bottom of src/proto.rs to its own src/tests/mod.rs.

Also drop the test_ prefix, this is not golang.

Change-Id: I2e0b6b9812264f3d9721c0766936f08157fadc66
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7667
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
Diffstat (limited to 'tvix/store/src/main.rs')
-rw-r--r--tvix/store/src/main.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/tvix/store/src/main.rs b/tvix/store/src/main.rs
index fd11f3c1c9c1..772a45d0bd59 100644
--- a/tvix/store/src/main.rs
+++ b/tvix/store/src/main.rs
@@ -1,5 +1,8 @@
 mod proto;
 
+#[cfg(test)]
+mod tests;
+
 fn main() {
     println!("Hello, world!");
 }