testutil: make SetLineHits usable in conditions
testdata: port testIf() from go.tools