improve errors, add warnings, add some compile-time optimizations, fix variables, make sure conditionals and loops get booleans, affirm types, keep variables to a single type
This commit is contained in:
parent
e34b423967
commit
b1b8e61f57
14 changed files with 435 additions and 118 deletions
34
test_all.sh
34
test_all.sh
|
|
@ -1,26 +1,24 @@
|
|||
#!/bin/zsh
|
||||
|
||||
echo '=== Building CLI ==='
|
||||
(
|
||||
cd cli || exit 1
|
||||
if ! go build .; then
|
||||
echo "=== Had error building CLI ==="
|
||||
exit 1
|
||||
else
|
||||
echo "=+= Successfully built CLI =+="
|
||||
fi
|
||||
)
|
||||
cd cli || exit 1
|
||||
if ! go build .; then
|
||||
echo "=== Had error building CLI ==="
|
||||
exit 1
|
||||
else
|
||||
echo "=+= Successfully built CLI =+="
|
||||
fi
|
||||
cd ..
|
||||
|
||||
echo "=== Running go core tests ==="
|
||||
(
|
||||
cd core || exit 1
|
||||
if ! go test .; then
|
||||
echo "=x= Core testing failed =x= "
|
||||
exit 1
|
||||
else
|
||||
echo "=+= Successfully ran core tests =+="
|
||||
fi
|
||||
)
|
||||
cd core || exit 1
|
||||
if ! go test .; then
|
||||
echo "=x= Core testing failed =x= "
|
||||
exit 1
|
||||
else
|
||||
echo "=+= Successfully ran core tests =+="
|
||||
fi
|
||||
cd ..
|
||||
|
||||
errors=()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue