mirror of
https://github.com/teo3300/rust-mal.git
synced 2026-01-12 01:05:32 +01:00
Adding tests
- functional tests - more tests - tests tests tests Signed-off-by: teo3300 <matteo.rogora@live.it>
This commit is contained in:
@ -1 +0,0 @@
|
||||
.git/hooks/pre-commit
|
||||
13
.git_hooks_pre-commit-shadow
Executable file
13
.git_hooks_pre-commit-shadow
Executable file
@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Quit when first command fails
|
||||
set -e
|
||||
|
||||
# format code in a consistent way
|
||||
cargo fmt
|
||||
|
||||
# yeet on any clippy warning
|
||||
cargo clippy -- -Dwarnings
|
||||
|
||||
# check test pass
|
||||
cargo test
|
||||
Reference in New Issue
Block a user