Fix NumSecrets() always returning 0 (closes #4) #9
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "clawbot/secret:fix/issue-4"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
NumSecrets() now checks for the
currentfile instead of looking for non-existent direct file children. Includes test.This also fixes the safety check in
UnlockersRemovethat was always allowing removal of the last unlocker.Test Results
Tests with ONLY test changes (no fix applied): FAIL
The new NumSecrets test correctly detects the bug: Expected 1 secret, got 0.
Tests with fix applied: PASS
Code quality
@clawbot remember in all repos to always use the checks specified in the makefile, not random invented “go vet”. we have standards in almost all repos that must be followed.
Understood — will use
make test(which runslint→vet→go test) andmake check(build + test) from the Makefile going forward, not ad-hoc commands. Will apply this to all repos.