blob: 0e7eea0428a001a858599d7029db837fb0480192 [file] [log] [blame]
// Copyright 2023 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:auto_submit/action/revert_method.dart';
import 'package:auto_submit/service/config.dart';
import 'package:github/src/common/model/pulls.dart';
class FakeRevertMethod implements RevertMethod {
Object? object;
bool throwException = false;
@override
Future<Object?> createRevert(Config config, String initiatingAuthor, PullRequest pullRequest) async {
if (throwException) {
throw 'Crappy github exception not related to the actual error.';
}
return object;
}
}