blob: 8dc4fc381b2800888ec96cc55ba932f0adf0dd79 [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,
String reasonForRevert,
PullRequest pullRequest,
) async {
if (throwException) {
throw 'Crappy github exception not related to the actual error.';
}
return object;
}
}