Lines Matching refs:f
211 return newSimpleFixturePreparer(func(f *fixture) {
212 mutator(f)
218 return newSimpleFixturePreparer(func(f *fixture) {
219 mutator(f.config)
225 return newSimpleFixturePreparer(func(f *fixture) {
226 mutator(f.config, f.ctx)
232 return newSimpleFixturePreparer(func(f *fixture) {
233 mutator(f.ctx)
243 return newSimpleFixturePreparer(func(f *fixture) {
244 mutator(f.mockFS)
247 for p, _ := range f.mockFS {
725 func (f *fixture) Config() Config {
726 return f.config
729 func (f *fixture) Context() *TestContext {
730 return f.ctx
733 func (f *fixture) MockFS() MockFS {
734 return f.mockFS
737 func (f *fixture) RunTest() *TestResult {
738 f.t.Helper()
741 if f.debug {
742 f.outputDebugState()
745 ctx := f.ctx
749 if f.mockFS != nil {
757 f.config.mockFileSystem("", f.mockFS)
770 extraNinjaDeps, errs = ctx.PrepareBuildActions(f.config)
778 fixture: f,
779 Config: f.config,
784 f.errorHandler.CheckErrors(f.t, result)
789 func (f *fixture) outputDebugState() {
790 fmt.Printf("Begin Fixture State for %s\n", f.t.Name())
791 if len(f.config.env) == 0 {
795 for k, v := range f.config.env {
800 if len(f.mockFS) == 0 {
804 for p, c := range f.mockFS {
819 fmt.Printf("End Fixture State for %s\n", f.t.Name())