mirror of
https://github.com/tw93/Mole.git
synced 2026-02-05 09:08:49 +00:00
Reconstruct clean lib code
This commit is contained in:
@@ -55,12 +55,16 @@ setup() {
|
||||
|
||||
@test "build-analyze.sh detects missing Go toolchain" {
|
||||
if command -v go > /dev/null 2>&1; then
|
||||
skip "Go is installed, cannot test missing toolchain"
|
||||
# Go is installed, verify script doesn't error out
|
||||
# (Don't actually build - too slow)
|
||||
run bash -c "grep -q 'go build' '$PROJECT_ROOT/scripts/build-analyze.sh'"
|
||||
[ "$status" -eq 0 ]
|
||||
else
|
||||
# Go is missing, verify proper error handling
|
||||
run "$PROJECT_ROOT/scripts/build-analyze.sh"
|
||||
[ "$status" -ne 0 ]
|
||||
[[ "$output" == *"Go not installed"* ]]
|
||||
fi
|
||||
|
||||
run "$PROJECT_ROOT/scripts/build-analyze.sh"
|
||||
[ "$status" -ne 0 ]
|
||||
[[ "$output" == *"Go not installed"* ]]
|
||||
}
|
||||
|
||||
@test "build-analyze.sh has version info support" {
|
||||
|
||||
Reference in New Issue
Block a user