Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import 'search_bar_test.dart' as _i2;
// ignore_for_file: unnecessary_parenthesis
// ignore_for_file: camel_case_types
// ignore_for_file: subtype_of_sealed_class
// ignore_for_file: invalid_use_of_internal_member

/// A class which mocks [ISearchBarEvents].
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ import 'package:zeta_flutter_theme/zeta_flutter_theme.dart' as _i2;
// ignore_for_file: unnecessary_parenthesis
// ignore_for_file: camel_case_types
// ignore_for_file: subtype_of_sealed_class
// ignore_for_file: invalid_use_of_internal_member

class _FakeZetaTextStyle_0 extends _i1.SmartFake implements _i2.ZetaTextStyle {
_FakeZetaTextStyle_0(
class _FakeZetaPrimitives_0 extends _i1.SmartFake implements _i2.ZetaPrimitives {
_FakeZetaPrimitives_0(
Object parent,
Invocation parentInvocation,
) : super(
Expand All @@ -35,8 +36,8 @@ class _FakeZetaTextStyle_0 extends _i1.SmartFake implements _i2.ZetaTextStyle {
);
}

class _FakeZetaPrimitives_1 extends _i1.SmartFake implements _i2.ZetaPrimitives {
_FakeZetaPrimitives_1(
class _FakeZetaSemantics_1 extends _i1.SmartFake implements _i2.ZetaSemantics {
_FakeZetaSemantics_1(
Object parent,
Invocation parentInvocation,
) : super(
Expand All @@ -45,8 +46,8 @@ class _FakeZetaPrimitives_1 extends _i1.SmartFake implements _i2.ZetaPrimitives
);
}

class _FakeZetaSemantics_2 extends _i1.SmartFake implements _i2.ZetaSemantics {
_FakeZetaSemantics_2(
class _FakeZetaTextStyle_2 extends _i1.SmartFake implements _i2.ZetaTextStyle {
_FakeZetaTextStyle_2(
Object parent,
Invocation parentInvocation,
) : super(
Expand Down Expand Up @@ -132,6 +133,32 @@ class _FakeDiagnosticsNode_8 extends _i1.SmartFake implements _i4.DiagnosticsNod
///
/// See the documentation for Mockito's code generation for more information.
class MockZeta extends _i1.Mock implements _i2.Zeta {
@override
_i2.ZetaPrimitives get primitives => (super.noSuchMethod(
Invocation.getter(#primitives),
returnValue: _FakeZetaPrimitives_0(
this,
Invocation.getter(#primitives),
),
returnValueForMissingStub: _FakeZetaPrimitives_0(
this,
Invocation.getter(#primitives),
),
) as _i2.ZetaPrimitives);

@override
_i2.ZetaSemantics get semantics => (super.noSuchMethod(
Invocation.getter(#semantics),
returnValue: _FakeZetaSemantics_1(
this,
Invocation.getter(#semantics),
),
returnValueForMissingStub: _FakeZetaSemantics_1(
this,
Invocation.getter(#semantics),
),
) as _i2.ZetaSemantics);

@override
bool get rounded => (super.noSuchMethod(
Invocation.getter(#rounded),
Expand All @@ -156,42 +183,16 @@ class MockZeta extends _i1.Mock implements _i2.Zeta {
@override
_i2.ZetaTextStyle get textStyles => (super.noSuchMethod(
Invocation.getter(#textStyles),
returnValue: _FakeZetaTextStyle_0(
returnValue: _FakeZetaTextStyle_2(
this,
Invocation.getter(#textStyles),
),
returnValueForMissingStub: _FakeZetaTextStyle_0(
returnValueForMissingStub: _FakeZetaTextStyle_2(
this,
Invocation.getter(#textStyles),
),
) as _i2.ZetaTextStyle);

@override
_i2.ZetaPrimitives get primitives => (super.noSuchMethod(
Invocation.getter(#primitives),
returnValue: _FakeZetaPrimitives_1(
this,
Invocation.getter(#primitives),
),
returnValueForMissingStub: _FakeZetaPrimitives_1(
this,
Invocation.getter(#primitives),
),
) as _i2.ZetaPrimitives);

@override
_i2.ZetaSemantics get semantics => (super.noSuchMethod(
Invocation.getter(#semantics),
returnValue: _FakeZetaSemantics_2(
this,
Invocation.getter(#semantics),
),
returnValueForMissingStub: _FakeZetaSemantics_2(
this,
Invocation.getter(#semantics),
),
) as _i2.ZetaSemantics);

@override
_i2.ZetaColors get colors => (super.noSuchMethod(
Invocation.getter(#colors),
Expand Down
69 changes: 35 additions & 34 deletions packages/zeta_flutter_theme/test/src/rounded_test.mocks.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ import 'package:zeta_flutter_theme/zeta_flutter_theme.dart' as _i2;
// ignore_for_file: unnecessary_parenthesis
// ignore_for_file: camel_case_types
// ignore_for_file: subtype_of_sealed_class
// ignore_for_file: invalid_use_of_internal_member

class _FakeZetaTextStyle_0 extends _i1.SmartFake implements _i2.ZetaTextStyle {
_FakeZetaTextStyle_0(
class _FakeZetaPrimitives_0 extends _i1.SmartFake implements _i2.ZetaPrimitives {
_FakeZetaPrimitives_0(
Object parent,
Invocation parentInvocation,
) : super(
Expand All @@ -35,8 +36,8 @@ class _FakeZetaTextStyle_0 extends _i1.SmartFake implements _i2.ZetaTextStyle {
);
}

class _FakeZetaPrimitives_1 extends _i1.SmartFake implements _i2.ZetaPrimitives {
_FakeZetaPrimitives_1(
class _FakeZetaSemantics_1 extends _i1.SmartFake implements _i2.ZetaSemantics {
_FakeZetaSemantics_1(
Object parent,
Invocation parentInvocation,
) : super(
Expand All @@ -45,8 +46,8 @@ class _FakeZetaPrimitives_1 extends _i1.SmartFake implements _i2.ZetaPrimitives
);
}

class _FakeZetaSemantics_2 extends _i1.SmartFake implements _i2.ZetaSemantics {
_FakeZetaSemantics_2(
class _FakeZetaTextStyle_2 extends _i1.SmartFake implements _i2.ZetaTextStyle {
_FakeZetaTextStyle_2(
Object parent,
Invocation parentInvocation,
) : super(
Expand Down Expand Up @@ -132,6 +133,32 @@ class _FakeDiagnosticsNode_8 extends _i1.SmartFake implements _i4.DiagnosticsNod
///
/// See the documentation for Mockito's code generation for more information.
class MockZeta extends _i1.Mock implements _i2.Zeta {
@override
_i2.ZetaPrimitives get primitives => (super.noSuchMethod(
Invocation.getter(#primitives),
returnValue: _FakeZetaPrimitives_0(
this,
Invocation.getter(#primitives),
),
returnValueForMissingStub: _FakeZetaPrimitives_0(
this,
Invocation.getter(#primitives),
),
) as _i2.ZetaPrimitives);

@override
_i2.ZetaSemantics get semantics => (super.noSuchMethod(
Invocation.getter(#semantics),
returnValue: _FakeZetaSemantics_1(
this,
Invocation.getter(#semantics),
),
returnValueForMissingStub: _FakeZetaSemantics_1(
this,
Invocation.getter(#semantics),
),
) as _i2.ZetaSemantics);

@override
bool get rounded => (super.noSuchMethod(
Invocation.getter(#rounded),
Expand All @@ -156,42 +183,16 @@ class MockZeta extends _i1.Mock implements _i2.Zeta {
@override
_i2.ZetaTextStyle get textStyles => (super.noSuchMethod(
Invocation.getter(#textStyles),
returnValue: _FakeZetaTextStyle_0(
returnValue: _FakeZetaTextStyle_2(
this,
Invocation.getter(#textStyles),
),
returnValueForMissingStub: _FakeZetaTextStyle_0(
returnValueForMissingStub: _FakeZetaTextStyle_2(
this,
Invocation.getter(#textStyles),
),
) as _i2.ZetaTextStyle);

@override
_i2.ZetaPrimitives get primitives => (super.noSuchMethod(
Invocation.getter(#primitives),
returnValue: _FakeZetaPrimitives_1(
this,
Invocation.getter(#primitives),
),
returnValueForMissingStub: _FakeZetaPrimitives_1(
this,
Invocation.getter(#primitives),
),
) as _i2.ZetaPrimitives);

@override
_i2.ZetaSemantics get semantics => (super.noSuchMethod(
Invocation.getter(#semantics),
returnValue: _FakeZetaSemantics_2(
this,
Invocation.getter(#semantics),
),
returnValueForMissingStub: _FakeZetaSemantics_2(
this,
Invocation.getter(#semantics),
),
) as _i2.ZetaSemantics);

@override
_i2.ZetaColors get colors => (super.noSuchMethod(
Invocation.getter(#colors),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import 'package:zeta_flutter_theme/src/theme_service.dart' as _i2;
// ignore_for_file: unnecessary_parenthesis
// ignore_for_file: camel_case_types
// ignore_for_file: subtype_of_sealed_class
// ignore_for_file: invalid_use_of_internal_member

class _FakeZetaThemeServiceData_0 extends _i1.SmartFake implements _i2.ZetaThemeServiceData {
_FakeZetaThemeServiceData_0(
Expand Down
65 changes: 33 additions & 32 deletions packages/zeta_flutter_utils/test/src/extensions_test.mocks.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import 'package:zeta_flutter_theme/zeta_flutter_theme.dart' as _i4;
// ignore_for_file: unnecessary_parenthesis
// ignore_for_file: camel_case_types
// ignore_for_file: subtype_of_sealed_class
// ignore_for_file: invalid_use_of_internal_member

class _FakeWidget_0 extends _i1.SmartFake implements _i2.Widget {
_FakeWidget_0(
Expand Down Expand Up @@ -89,8 +90,8 @@ class _FakeColor_4 extends _i1.SmartFake implements _i5.Color {
);
}

class _FakeZetaTextStyle_5 extends _i1.SmartFake implements _i4.ZetaTextStyle {
_FakeZetaTextStyle_5(
class _FakeZetaSemantics_5 extends _i1.SmartFake implements _i4.ZetaSemantics {
_FakeZetaSemantics_5(
Object parent,
Invocation parentInvocation,
) : super(
Expand All @@ -99,8 +100,8 @@ class _FakeZetaTextStyle_5 extends _i1.SmartFake implements _i4.ZetaTextStyle {
);
}

class _FakeZetaSemantics_6 extends _i1.SmartFake implements _i4.ZetaSemantics {
_FakeZetaSemantics_6(
class _FakeZetaTextStyle_6 extends _i1.SmartFake implements _i4.ZetaTextStyle {
_FakeZetaTextStyle_6(
Object parent,
Invocation parentInvocation,
) : super(
Expand Down Expand Up @@ -1601,6 +1602,32 @@ class MockZetaColors extends _i1.Mock implements _i4.ZetaColors {
///
/// See the documentation for Mockito's code generation for more information.
class MockZeta extends _i1.Mock implements _i4.Zeta {
@override
_i4.ZetaPrimitives get primitives => (super.noSuchMethod(
Invocation.getter(#primitives),
returnValue: _FakeZetaPrimitives_3(
this,
Invocation.getter(#primitives),
),
returnValueForMissingStub: _FakeZetaPrimitives_3(
this,
Invocation.getter(#primitives),
),
) as _i4.ZetaPrimitives);

@override
_i4.ZetaSemantics get semantics => (super.noSuchMethod(
Invocation.getter(#semantics),
returnValue: _FakeZetaSemantics_5(
this,
Invocation.getter(#semantics),
),
returnValueForMissingStub: _FakeZetaSemantics_5(
this,
Invocation.getter(#semantics),
),
) as _i4.ZetaSemantics);

@override
bool get rounded => (super.noSuchMethod(
Invocation.getter(#rounded),
Expand All @@ -1625,42 +1652,16 @@ class MockZeta extends _i1.Mock implements _i4.Zeta {
@override
_i4.ZetaTextStyle get textStyles => (super.noSuchMethod(
Invocation.getter(#textStyles),
returnValue: _FakeZetaTextStyle_5(
returnValue: _FakeZetaTextStyle_6(
this,
Invocation.getter(#textStyles),
),
returnValueForMissingStub: _FakeZetaTextStyle_5(
returnValueForMissingStub: _FakeZetaTextStyle_6(
this,
Invocation.getter(#textStyles),
),
) as _i4.ZetaTextStyle);

@override
_i4.ZetaPrimitives get primitives => (super.noSuchMethod(
Invocation.getter(#primitives),
returnValue: _FakeZetaPrimitives_3(
this,
Invocation.getter(#primitives),
),
returnValueForMissingStub: _FakeZetaPrimitives_3(
this,
Invocation.getter(#primitives),
),
) as _i4.ZetaPrimitives);

@override
_i4.ZetaSemantics get semantics => (super.noSuchMethod(
Invocation.getter(#semantics),
returnValue: _FakeZetaSemantics_6(
this,
Invocation.getter(#semantics),
),
returnValueForMissingStub: _FakeZetaSemantics_6(
this,
Invocation.getter(#semantics),
),
) as _i4.ZetaSemantics);

@override
_i4.ZetaColors get colors => (super.noSuchMethod(
Invocation.getter(#colors),
Expand Down
9 changes: 9 additions & 0 deletions widgetbook/assets/logo-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading