func AbortTest() {
	panic(abortError{})
}
Immediately stop executing the running test, causing it to fail with the
failures previously recorded. Behavior is undefined if no failures have been
recorded.
package ogletest
import (
	"fmt"
	"path"
	"runtime"
)
type FailureRecord struct {
	FileName string
	LineNumber int
	Error string
}
func AddFailureRecord(r FailureRecord) {
	currentlyRunningTest.mu.Lock()
	defer currentlyRunningTest.mu.Unlock()
	currentlyRunningTest.failureRecords = append(
		currentlyRunningTest.failureRecords,
		r)
}
func AddFailure(format string, a ...interface{}) {
	r := FailureRecord{
		Error: fmt.Sprintf(format, a...),
	}
	var ok bool
	if _, r.FileName, r.LineNumber, ok = runtime.Caller(1); !ok {
		panic("Can't find caller")
	}
	r.FileName = path.Base(r.FileName)
	AddFailureRecord(r)
}
type abortError struct {
}