Skip to content

Commit

Permalink
build: generate code by dependency order
Browse files Browse the repository at this point in the history
  • Loading branch information
rIIh committed Aug 5, 2024
1 parent 2a84443 commit c7abb81
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ scripts:
melos exec --scope=allure_server_cli -- dart pub global activate -s path .

generate: |
melos exec --depends-on=build_runner -- dart run build_runner build -d
melos exec -c 1 --order-dependents --depends-on=build_runner -- dart run build_runner build -d
test: |
melos exec --dir-exists test --dir-exists allure-results -- rm -rf allure-results
Expand Down
12 changes: 8 additions & 4 deletions packages/allure_report/lib/src/test_report.freezed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -166,15 +166,19 @@ class _$TestReportImpl extends _TestReport {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$TestReportImpl &&
(identical(other.start, start) || other.start == start) &&
(identical(other.end, end) || other.end == end) &&
(identical(other.error, error) || other.error == error) &&
const DeepCollectionEquality().equals(other.start, start) &&
const DeepCollectionEquality().equals(other.end, end) &&
const DeepCollectionEquality().equals(other.error, error) &&
const DeepCollectionEquality()
.equals(other._attachments, _attachments));
}

@override
int get hashCode => Object.hash(runtimeType, start, end, error,
int get hashCode => Object.hash(
runtimeType,
const DeepCollectionEquality().hash(start),
const DeepCollectionEquality().hash(end),
const DeepCollectionEquality().hash(error),
const DeepCollectionEquality().hash(_attachments));

@JsonKey(ignore: true)
Expand Down

0 comments on commit c7abb81

Please sign in to comment.