func checkData(chkr *checker.Checker) []error { return collectErrors( func(errCh chan<- error, done <-chan struct{}) { chkr.ReadData(nil, errCh, done) }, ) }
func assertNoUnreferencedPacks(t *testing.T, chkr *checker.Checker) { done := make(chan struct{}) defer close(done) errChan := make(chan error) go chkr.Packs(errChan, done) for err := range errChan { OK(t, err) } }