anchor.diff:      });
   
       testUsingContext('test with bot', () async {
  +      Cache.flutterRoot = '';
  +      globals.fs.file('pubspec.yaml').createSync();
  +      processManager.addCommand(
  +        const FakeCommand(command: <String>['/bin/cache/dart-sdk/bin/pub', '--trace', 'run', 'test']),
  +      );
         await createTestCommandRunner(PackagesCommand()).run(<String>['packages', 'test']);
  -      final List<String> commands = mockProcessManager.commands;
  -      expect(commands, hasLength(4));
  -      expect(commands[0], matches(r'dart-sdk[\\/]bin[\\/]pub'));
  -      expect(commands[1], '--trace');
  -      expect(commands[2], 'run');
  -      expect(commands[3], 'test');
  -    }, overrides: <Type, Generator>{
  -      ProcessManager: () => mockProcessManager,
  +
  +      expect(processManager.hasRemainingExpectations, false);
  +    }, overrides: <Type, Generator>{
  +      FileSystem: () => MemoryFileSystem.test(),
  +      Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
  +      ProcessManager: () => processManager,
         Stdio: () => mockStdio,
         BotDetector: () => const FakeBotDetector(true),
         Pub: () => Pub(
  
positive.code: 
  // @dart = 2.8
  
  import 'dart:convert';
  
  import 'package:args/command_runner.dart';
  import 'package:flutter_tools/src/base/bot_detector.dart';
  import 'package:flutter_tools/src/base/error_handling_io.dart';
  import 'package:flutter_tools/src/base/file_system.dart' hide IOSink;
  import 'package:flutter_tools/src/base/io.dart';
  import 'package:flutter_tools/src/cache.dart';
  import 'package:flutter_tools/src/commands/packages.dart';
  import 'package:flutter_tools/src/dart/pub.dart';
  
negative.code:   });
  
    group('packages test/pub', () {
      FakeProcessManager processManager;
      FakeStdio mockStdio;
  
      setUp(() {
        processManager = FakeProcessManager.list(<FakeCommand>[]);
        mockStdio = FakeStdio()..stdout.terminalColumns = 80;
      });
  
      testUsingContext('test without bot', () async {
        Cache.flutterRoot = '';
        globals.fs.file('pubspec.yaml').createSync();
        processManager.addCommand(
          const FakeCommand(command: <String>['/bin/cache/dart-sdk/bin/pub', 'run', 'test']),
        );
        await createTestCommandRunner(PackagesCommand()).run(<String>['packages', 'test']);
  
        expect(processManager.hasRemainingExpectations, false);
      }, overrides: <Type, Generator>{
        FileSystem: () => MemoryFileSystem.test(),
        Platform: () => FakePlatform(operatingSystem: 'linux', environment: <String, String>{}),
        ProcessManager: () => processManager,
        Stdio: () => mockStdio,
        BotDetector: () => const FakeBotDetector(false),
        Pub: () => Pub(
  