From 8d323e239a7ad64ce26ec71305618ea7901d7cfb Mon Sep 17 00:00:00 2001 From: Alejandro Santiago Date: Tue, 27 Aug 2024 15:37:43 +0100 Subject: [PATCH] chore: v0.3.0 (#31) Co-authored-by: Tom Arra --- CHANGELOG.md | 4 ++ lib/src/models/test_event.g.dart | 75 +++++++++++++++++--------------- pubspec.yaml | 2 +- 3 files changed, 44 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5333ef2..da049d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.3.0 + +- chore: tighten dependencies ([#29](https://github.com/VeryGoodOpenSource/very_good_test_runner/pull/29)) + # 0.2.0 - ci: use semantic-pull-request workflow ([#8](https://github.com/VeryGoodOpenSource/very_good_test_runner/pull/8)) diff --git a/lib/src/models/test_event.g.dart b/lib/src/models/test_event.g.dart index 8ece470..4b419bc 100644 --- a/lib/src/models/test_event.g.dart +++ b/lib/src/models/test_event.g.dart @@ -17,8 +17,8 @@ StartTestEvent _$StartTestEventFromJson(Map json) => protocolVersion: $checkedConvert('protocolVersion', (v) => v as String), runnerVersion: $checkedConvert('runnerVersion', (v) => v as String?), - pid: $checkedConvert('pid', (v) => v as int), - time: $checkedConvert('time', (v) => v as int), + pid: $checkedConvert('pid', (v) => (v as num).toInt()), + time: $checkedConvert('time', (v) => (v as num).toInt()), ); return val; }, @@ -30,8 +30,8 @@ AllSuitesTestEvent _$AllSuitesTestEventFromJson(Map json) => json, ($checkedConvert) { final val = AllSuitesTestEvent( - count: $checkedConvert('count', (v) => v as int), - time: $checkedConvert('time', (v) => v as int), + count: $checkedConvert('count', (v) => (v as num).toInt()), + time: $checkedConvert('time', (v) => (v as num).toInt()), ); return val; }, @@ -45,7 +45,7 @@ SuiteTestEvent _$SuiteTestEventFromJson(Map json) => final val = SuiteTestEvent( suite: $checkedConvert( 'suite', (v) => TestSuite.fromJson(v as Map)), - time: $checkedConvert('time', (v) => v as int), + time: $checkedConvert('time', (v) => (v as num).toInt()), ); return val; }, @@ -57,11 +57,11 @@ DebugTestEvent _$DebugTestEventFromJson(Map json) => json, ($checkedConvert) { final val = DebugTestEvent( - suiteID: $checkedConvert('suiteID', (v) => v as int), + suiteID: $checkedConvert('suiteID', (v) => (v as num).toInt()), observatory: $checkedConvert('observatory', (v) => v as String?), remoteDebugger: $checkedConvert('remoteDebugger', (v) => v as String?), - time: $checkedConvert('time', (v) => v as int), + time: $checkedConvert('time', (v) => (v as num).toInt()), ); return val; }, @@ -75,7 +75,7 @@ GroupTestEvent _$GroupTestEventFromJson(Map json) => final val = GroupTestEvent( group: $checkedConvert( 'group', (v) => TestGroup.fromJson(v as Map)), - time: $checkedConvert('time', (v) => v as int), + time: $checkedConvert('time', (v) => (v as num).toInt()), ); return val; }, @@ -89,7 +89,7 @@ TestStartEvent _$TestStartEventFromJson(Map json) => final val = TestStartEvent( test: $checkedConvert( 'test', (v) => Test.fromJson(v as Map)), - time: $checkedConvert('time', (v) => v as int), + time: $checkedConvert('time', (v) => (v as num).toInt()), ); return val; }, @@ -101,10 +101,10 @@ MessageTestEvent _$MessageTestEventFromJson(Map json) => json, ($checkedConvert) { final val = MessageTestEvent( - testID: $checkedConvert('testID', (v) => v as int), + testID: $checkedConvert('testID', (v) => (v as num).toInt()), messageType: $checkedConvert('messageType', (v) => v as String), message: $checkedConvert('message', (v) => v as String), - time: $checkedConvert('time', (v) => v as int), + time: $checkedConvert('time', (v) => (v as num).toInt()), ); return val; }, @@ -116,11 +116,11 @@ ErrorTestEvent _$ErrorTestEventFromJson(Map json) => json, ($checkedConvert) { final val = ErrorTestEvent( - testID: $checkedConvert('testID', (v) => v as int), + testID: $checkedConvert('testID', (v) => (v as num).toInt()), error: $checkedConvert('error', (v) => v as String), stackTrace: $checkedConvert('stackTrace', (v) => v as String), isFailure: $checkedConvert('isFailure', (v) => v as bool), - time: $checkedConvert('time', (v) => v as int), + time: $checkedConvert('time', (v) => (v as num).toInt()), ); return val; }, @@ -132,12 +132,12 @@ TestDoneEvent _$TestDoneEventFromJson(Map json) => json, ($checkedConvert) { final val = TestDoneEvent( - testID: $checkedConvert('testID', (v) => v as int), + testID: $checkedConvert('testID', (v) => (v as num).toInt()), result: $checkedConvert( 'result', (v) => $enumDecode(_$TestResultEnumMap, v)), hidden: $checkedConvert('hidden', (v) => v as bool), skipped: $checkedConvert('skipped', (v) => v as bool), - time: $checkedConvert('time', (v) => v as int), + time: $checkedConvert('time', (v) => (v as num).toInt()), ); return val; }, @@ -156,7 +156,7 @@ DoneTestEvent _$DoneTestEventFromJson(Map json) => ($checkedConvert) { final val = DoneTestEvent( success: $checkedConvert('success', (v) => v as bool?), - time: $checkedConvert('time', (v) => v as int), + time: $checkedConvert('time', (v) => (v as num).toInt()), ); return val; }, @@ -168,8 +168,8 @@ ExitTestEvent _$ExitTestEventFromJson(Map json) => json, ($checkedConvert) { final val = ExitTestEvent( - time: $checkedConvert('time', (v) => v as int), - exitCode: $checkedConvert('exitCode', (v) => v as int), + time: $checkedConvert('time', (v) => (v as num).toInt()), + exitCode: $checkedConvert('exitCode', (v) => (v as num).toInt()), ); return val; }, @@ -180,7 +180,7 @@ TestSuite _$TestSuiteFromJson(Map json) => $checkedCreate( json, ($checkedConvert) { final val = TestSuite( - id: $checkedConvert('id', (v) => v as int), + id: $checkedConvert('id', (v) => (v as num).toInt()), platform: $checkedConvert('platform', (v) => v as String), path: $checkedConvert('path', (v) => v as String?), ); @@ -193,16 +193,16 @@ TestGroup _$TestGroupFromJson(Map json) => $checkedCreate( json, ($checkedConvert) { final val = TestGroup( - id: $checkedConvert('id', (v) => v as int), + id: $checkedConvert('id', (v) => (v as num).toInt()), name: $checkedConvert('name', (v) => v as String), - suiteID: $checkedConvert('suiteID', (v) => v as int), - parentID: $checkedConvert('parentID', (v) => v as int?), - testCount: $checkedConvert('testCount', (v) => v as int), - line: $checkedConvert('line', (v) => v as int?), - column: $checkedConvert('column', (v) => v as int?), - url: $checkedConvert('url', (v) => v as String?), + suiteID: $checkedConvert('suiteID', (v) => (v as num).toInt()), + testCount: $checkedConvert('testCount', (v) => (v as num).toInt()), metadata: $checkedConvert('metadata', (v) => TestMetadata.fromJson(v as Map)), + parentID: $checkedConvert('parentID', (v) => (v as num?)?.toInt()), + line: $checkedConvert('line', (v) => (v as num?)?.toInt()), + column: $checkedConvert('column', (v) => (v as num?)?.toInt()), + url: $checkedConvert('url', (v) => v as String?), ); return val; }, @@ -226,19 +226,22 @@ Test _$TestFromJson(Map json) => $checkedCreate( json, ($checkedConvert) { final val = Test( - id: $checkedConvert('id', (v) => v as int), + id: $checkedConvert('id', (v) => (v as num).toInt()), name: $checkedConvert('name', (v) => v as String), - suiteID: $checkedConvert('suiteID', (v) => v as int), - groupIDs: $checkedConvert('groupIDs', - (v) => (v as List).map((e) => e as int).toList()), - line: $checkedConvert('line', (v) => v as int?), - column: $checkedConvert('column', (v) => v as int?), - url: $checkedConvert('url', (v) => v as String?), - rootLine: $checkedConvert('rootLine', (v) => v as int?), - rootColumn: $checkedConvert('rootColumn', (v) => v as int?), - rootUrl: $checkedConvert('rootUrl', (v) => v as String?), + suiteID: $checkedConvert('suiteID', (v) => (v as num).toInt()), + groupIDs: $checkedConvert( + 'groupIDs', + (v) => + (v as List).map((e) => (e as num).toInt()).toList()), metadata: $checkedConvert('metadata', (v) => TestMetadata.fromJson(v as Map)), + line: $checkedConvert('line', (v) => (v as num?)?.toInt()), + column: $checkedConvert('column', (v) => (v as num?)?.toInt()), + url: $checkedConvert('url', (v) => v as String?), + rootLine: $checkedConvert('rootLine', (v) => (v as num?)?.toInt()), + rootColumn: + $checkedConvert('rootColumn', (v) => (v as num?)?.toInt()), + rootUrl: $checkedConvert('rootUrl', (v) => v as String?), ); return val; }, diff --git a/pubspec.yaml b/pubspec.yaml index 652e57f..dc51bb9 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: very_good_test_runner description: A test runner for Flutter and Dart created by Very Good Ventures homepage: https://github.com/VeryGoodOpenSource/very_good_test_runner -version: 0.2.0 +version: 0.3.0 environment: sdk: ^3.5.0