From 044b7a27aecc183f204b25dd74c23d911343f9fb Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Mon, 8 Jul 2024 12:51:44 -0700 Subject: [PATCH] update lints (#494) --- .github/workflows/test-package.yml | 4 ++-- CHANGELOG.md | 4 ++++ pubspec.yaml | 12 ++++++------ test/function_coverage_test.dart | 4 ++-- test/test_files/test_library.dart | 2 -- 5 files changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test-package.yml b/.github/workflows/test-package.yml index 90c6d04d..e1c1bc0c 100644 --- a/.github/workflows/test-package.yml +++ b/.github/workflows/test-package.yml @@ -20,7 +20,7 @@ jobs: strategy: fail-fast: false matrix: - sdk: [stable] + sdk: [dev] steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 @@ -46,7 +46,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] - sdk: [3.0.0, dev] + sdk: [3.4, dev] steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a2a711e..09faed80 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.8.1-wip + +- Require Dart ^3.4 + ## 1.8.0 - Copy collect_coverage's `--scope-output` flag to test_with_coverage. diff --git a/pubspec.yaml b/pubspec.yaml index 6a443ac0..e3c50ba1 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,10 +1,10 @@ name: coverage -version: 1.8.0 +version: 1.8.1-wip description: Coverage data manipulation and formatting repository: https://github.com/dart-lang/coverage environment: - sdk: ^3.0.0 + sdk: ^3.4.0 dependencies: args: ^2.0.0 @@ -17,10 +17,10 @@ dependencies: dev_dependencies: benchmark_harness: ^2.2.0 - build_runner: ^2.1.10 - dart_flutter_team_lints: ^2.0.0 - mockito: ^5.3.2 - test: ^1.16.0 + build_runner: ^2.3.1 + dart_flutter_team_lints: ^3.0.0 + mockito: ^5.4.1 + test: ^1.24.7 test_descriptor: ^2.0.0 test_process: ^2.0.0 diff --git a/test/function_coverage_test.dart b/test/function_coverage_test.dart index 58e84974..965d0d03 100644 --- a/test/function_coverage_test.dart +++ b/test/function_coverage_test.dart @@ -57,8 +57,8 @@ void main() { final testLibraryUri = p.toUri(testLibraryPath).toString(); expect(hitMap, contains(testLibraryUri)); final libraryfile = hitMap[testLibraryUri]!; - expect(libraryfile.funcHits, {9: 1}); - expect(libraryfile.funcNames, {9: 'libraryFunction'}); + expect(libraryfile.funcHits, {7: 1}); + expect(libraryfile.funcNames, {7: 'libraryFunction'}); // test_library_part.dart. final testLibraryPartPath = diff --git a/test/test_files/test_library.dart b/test/test_files/test_library.dart index 33542942..d2fe49fa 100644 --- a/test/test_files/test_library.dart +++ b/test/test_files/test_library.dart @@ -2,8 +2,6 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -library test_library; - part 'test_library_part.dart'; int libraryFunction() {