anchor.diff:      }, overrides: noColorTerminalOverride);
   
       testUsingContext('gen_snapshot does not work', () async {
  +      memoryFileSystem.file(genSnapshotPath).createSync(recursive: true);
         when(mockProcessManager.runSync(
  -        <String>[globals.artifacts.getArtifactPath(Artifact.genSnapshot)],
  +        <String>[genSnapshotPath],
           workingDirectory: anyNamed('workingDirectory'),
           environment: anyNamed('environment'),
         )).thenReturn(ProcessResult(101, 1, '', ''));
  
positive.code: }
  
  class MockProcessManager extends Mock implements ProcessManager {}
  
negative.code:         }
        }
      }, overrides: <Type, Generator>{
        Artifacts: () => mockArtifacts,
        FileSystem: () => memoryFileSystem,
        OutputPreferences: () => OutputPreferences(wrapText: false),
        ProcessManager: () => mockProcessManager,
        Platform: _kNoColorOutputPlatform,
      });
  
      testUsingContext('gen_snapshot binary not available', () async {
        expect(await FlutterValidatorDoctor().diagnose(verbose: false), isTrue);
        // gen_snapshot is downloaded on demand, and the doctor should not
        // fail if the gen_snapshot binary is not present.
        expect(testLogger.statusText, contains('No issues found!'));
      }, overrides: <Type, Generator>{
        Artifacts: () => mockArtifacts,
        FileSystem: () => MemoryFileSystem(),
        ProcessManager: () => FakeProcessManager.any(),
      });
  
      testUsingContext('version checking does not work', () async {
        memoryFileSystem.file(genSnapshotPath).createSync(recursive: true);
        final VersionCheckError versionCheckError = VersionCheckError('version error');
  
        when(mockFlutterVersion.channel).thenReturn('unknown');
  