cpd/test/unit_testing/todo_interface_test.mocks.dart

126 lines
3.5 KiB
Dart

// Mocks generated by Mockito 5.4.4 from annotations
// in cpd/test/unit_testing/todo_interface_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i3;
import 'package:cpd/database/habit.dart' as _i6;
import 'package:cpd/database/todo_interface.dart' as _i2;
import 'package:flutter/cupertino.dart' as _i5;
import 'package:mockito/mockito.dart' as _i1;
import 'package:sqflite/sqflite.dart' as _i4;
// ignore_for_file: type=lint
// ignore_for_file: avoid_redundant_argument_values
// ignore_for_file: avoid_setters_without_getters
// ignore_for_file: comment_references
// ignore_for_file: deprecated_member_use
// ignore_for_file: deprecated_member_use_from_same_package
// ignore_for_file: implementation_imports
// ignore_for_file: invalid_use_of_visible_for_testing_member
// ignore_for_file: prefer_const_constructors
// ignore_for_file: unnecessary_parenthesis
// ignore_for_file: camel_case_types
// ignore_for_file: subtype_of_sealed_class
/// A class which mocks [ToDoInterface].
///
/// See the documentation for Mockito's code generation for more information.
class MockToDoInterface extends _i1.Mock implements _i2.ToDoInterface {
MockToDoInterface() {
_i1.throwOnMissingStub(this);
}
@override
_i3.Future<void> createTable(_i4.Database? database) => (super.noSuchMethod(
Invocation.method(
#createTable,
[database],
),
returnValue: _i3.Future<void>.value(),
returnValueForMissingStub: _i3.Future<void>.value(),
) as _i3.Future<void>);
@override
_i3.Future<int> insert({
required String? title,
required String? subtitle,
required _i5.IconData? icon,
}) =>
(super.noSuchMethod(
Invocation.method(
#insert,
[],
{
#title: title,
#subtitle: subtitle,
#icon: icon,
},
),
returnValue: _i3.Future<int>.value(0),
) as _i3.Future<int>);
@override
_i3.Future<List<_i6.Habit>> fetchAll() => (super.noSuchMethod(
Invocation.method(
#fetchAll,
[],
),
returnValue: _i3.Future<List<_i6.Habit>>.value(<_i6.Habit>[]),
) as _i3.Future<List<_i6.Habit>>);
@override
_i3.Future<_i6.Habit?> fetchById(int? id) => (super.noSuchMethod(
Invocation.method(
#fetchById,
[id],
),
returnValue: _i3.Future<_i6.Habit?>.value(),
) as _i3.Future<_i6.Habit?>);
@override
_i3.Future<int> update({
required int? id,
required String? title,
required String? subtitle,
required _i5.IconData? icon,
}) =>
(super.noSuchMethod(
Invocation.method(
#update,
[],
{
#id: id,
#title: title,
#subtitle: subtitle,
#icon: icon,
},
),
returnValue: _i3.Future<int>.value(0),
) as _i3.Future<int>);
@override
_i3.Future<void> delete(int? id) => (super.noSuchMethod(
Invocation.method(
#delete,
[id],
),
returnValue: _i3.Future<void>.value(),
returnValueForMissingStub: _i3.Future<void>.value(),
) as _i3.Future<void>);
@override
_i3.Future<int?>? updateCompletionStatus(
int? id,
bool? isCompleted,
) =>
(super.noSuchMethod(Invocation.method(
#updateCompletionStatus,
[
id,
isCompleted,
],
)) as _i3.Future<int?>?);
}