This function is assumed to be run from the root of a Go lang project. It calculates the sha1 value of the project's directory tree every 10 seconds. If the value of the command has changed then go test ./...
is executed causing all the tests in the project to be run.
function goct() {
local project_hash=-1
while true; do