mirror of
https://github.com/hanskokx/arcane_framework.git
synced 2026-05-14 02:19:08 +02:00
[UNTESTED] Fixes notifiers and adds some additional methods. Adds tests.
Changes: // ArcaneEnvironment breaking: context.read<ArcaneEnvironment>() -> ArcaneEnvironment.of(context) breaking: context.read<ArcaneEnvironment>().state -> ArcaneEnvironment.of(context).environment; // Feature flag service added: reset() // Logging service added: registerInterface() added: unregisterInterfaces() added: unregisterAllInterfaces() // ArcaneReactiveTheme fixed: currentMode, dark, light now actually emit new values when changed added: getters for lightTheme, darkTheme, and systemTheme TODO: test systemTheme Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
// Mocks generated by Mockito 5.4.5 from annotations
|
||||
// in arcane_framework/test/services/logging/logging_service_test.dart.
|
||||
// Do not manually edit this file.
|
||||
|
||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||
import 'dart:async' as _i3;
|
||||
|
||||
import 'package:arcane_framework/src/services/logging/logging_service.dart'
|
||||
as _i2;
|
||||
import 'package:mockito/mockito.dart' as _i1;
|
||||
|
||||
// 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: must_be_immutable
|
||||
// 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 [LoggingInterface].
|
||||
///
|
||||
/// See the documentation for Mockito's code generation for more information.
|
||||
class MockLoggingInterface extends _i1.Mock implements _i2.LoggingInterface {
|
||||
@override
|
||||
bool get initialized =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.getter(#initialized),
|
||||
returnValue: false,
|
||||
returnValueForMissingStub: false,
|
||||
)
|
||||
as bool);
|
||||
|
||||
@override
|
||||
_i3.Future<_i2.LoggingInterface?> init() =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(#init, []),
|
||||
returnValue: _i3.Future<_i2.LoggingInterface?>.value(),
|
||||
returnValueForMissingStub:
|
||||
_i3.Future<_i2.LoggingInterface?>.value(),
|
||||
)
|
||||
as _i3.Future<_i2.LoggingInterface?>);
|
||||
|
||||
@override
|
||||
void log(
|
||||
String? message, {
|
||||
Map<String, dynamic>? metadata,
|
||||
_i2.Level? level,
|
||||
StackTrace? stackTrace,
|
||||
Object? extra,
|
||||
}) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#log,
|
||||
[message],
|
||||
{
|
||||
#metadata: metadata,
|
||||
#level: level,
|
||||
#stackTrace: stackTrace,
|
||||
#extra: extra,
|
||||
},
|
||||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user