diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 03ca35a..6c03a0a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,74 +4,61 @@ on: branches: [ main ] jobs: - build: - name: Tests, Build & Deploy + prepare: + name: Prepare Release runs-on: ubuntu-latest - timeout-minutes: 20 + timeout-minutes: 10 permissions: contents: write + outputs: + VERSION: ${{ steps.get_version.outputs.VERSION }} steps: - name: Code Checkout uses: actions/checkout@v6 - name: Get Pubspec Version + id: get_version run: | VERSION=$(grep 'version:' pubspec.yaml | cut -c 10- | cut -f 1 -d '+') - sed -i "s/dev/$VERSION/g" bin/check.dart - echo "VERSION=$VERSION" >> $GITHUB_ENV + echo "VERSION=$VERSION" >> $GITHUB_OUTPUT - name: Check if version is used run: | - URL=$GITHUB_API_URL/repos/$GITHUB_REPOSITORY/releases/tags/${{ env.VERSION }} + URL=$GITHUB_API_URL/repos/$GITHUB_REPOSITORY/releases/tags/${{ steps.get_version.outputs.VERSION }} CODE=$(curl -s -H "Authorization: Bearer ${{ github.token }}" -o /dev/null -w "%{http_code}" "$URL") if [ "$CODE" != 404 ]; then - echo "Release '$VERSION' already exists. ($CODE)" + echo "Release 'v${{ steps.get_version.outputs.VERSION }}' already exists. ($CODE)" exit 1 fi - - name: Flutter Environment - uses: subosito/flutter-action@v2 + - name: Dart Environment + uses: dart-lang/setup-dart@v1 with: - channel: 'stable' - cache: false + sdk: stable + + - name: Dart Pub Get + run: dart pub get + + - name: Dart Analyze + run: dart analyze --fatal-infos - name: Install lcov env: DEBIAN_FRONTEND: noninteractive run: | - sudo apt-get update -y + sudo apt update -y sudo apt install -y lcov - - name: Dart Pub Get - timeout-minutes: 3 - run: dart pub get - - name: Dart Test run: | dart test \ - --coverage=coverage \ + --coverage-path=./coverage/lcov.info \ + --reporter=github \ --concurrency=$(grep -c processor /proc/cpuinfo) - - name: Dart Compile - run: | - mkdir -p build - dart compile exe bin/check.dart -o build/check - - - name: Creating package filter - run: dart run helpers/package.dart - - - name: Creating lcov.info - run: | - dart run coverage:format_coverage \ - --packages=coverage/package.json \ - --lcov \ - -i coverage \ - -o coverage/lcov.info - - name: Creating Test Coverage HTML run: | genhtml coverage/lcov.info \ - --ignore-errors empty \ --output-directory coverage/html/coverage \ --title "check" \ --show-details @@ -89,14 +76,85 @@ jobs: - name: Creating a GitHub Tag uses: mathieudutour/github-tag-action@v6.2 with: - custom_tag: ${{ env.VERSION }} - tag_prefix: '' + custom_tag: ${{ steps.get_version.outputs.VERSION }} github_token: ${{ secrets.GITHUB_TOKEN }} + build: + name: Build ${{ matrix.target }} + needs: prepare + runs-on: ${{ matrix.runner }} + strategy: + fail-fast: false + matrix: + include: + - runner: ubuntu-latest + target: linux-amd64 + ext: "" + - runner: ubuntu-24.04-arm + target: linux-arm64 + ext: "" + - runner: macos-15-intel + target: macos-intel + ext: "" + - runner: macos-15 + target: macos-silicon + ext: "" + - runner: windows-latest + target: windows-amd64 + ext: ".exe" + + steps: + - name: Code Checkout + uses: actions/checkout@v6 + + - name: Dart Environment + uses: dart-lang/setup-dart@v1 + with: + sdk: stable + + - name: Dart Pub Get + shell: bash + run: dart pub get + + - name: Dart Test + shell: bash + run: dart test + + - name: Update Version in Code + shell: bash + run: dart run helpers/update_version.dart ${{ needs.prepare.outputs.VERSION }} + + - name: Dart Compile + shell: bash + run: | + mkdir -p build + dart compile exe bin/check.dart -o build/check-${{ matrix.target }}${{ matrix.ext }} + + - name: Upload Artifact + uses: actions/upload-artifact@v7 + with: + name: check-${{ matrix.target }} + path: build/check-${{ matrix.target }}${{ matrix.ext }} + retention-days: 1 + + release: + name: Create GitHub Release + needs: [ prepare, build ] + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Download All Artifacts + uses: actions/download-artifact@v8 + with: + path: artifacts + merge-multiple: true + - name: Create a GitHub Release uses: ncipollo/release-action@v1 with: - tag: ${{ env.VERSION }} + tag: ${{ needs.prepare.outputs.VERSION }} token: ${{ secrets.GITHUB_TOKEN }} allowUpdates: true - artifacts: build/* + artifacts: artifacts/* + generateReleaseNotes: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b2ff89d..4bc98cb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,29 +6,24 @@ jobs: tests: name: Tests runs-on: ubuntu-latest - timeout-minutes: 20 + timeout-minutes: 10 steps: - name: Code Checkout uses: actions/checkout@v6 - - name: Get Pubspec Version - run: | - VERSION=$(grep 'version:' pubspec.yaml | cut -c 10- | cut -f 1 -d '+') - echo "VERSION=$VERSION" >> $GITHUB_ENV - - - name: Flutter Environment - uses: subosito/flutter-action@v2 + - name: Dart Environment + uses: dart-lang/setup-dart@v1 with: - channel: 'stable' - cache: false + sdk: stable - name: Dart Pub Get - timeout-minutes: 3 run: dart pub get - name: Dart Analyze - timeout-minutes: 3 run: dart analyze --fatal-infos - name: Dart Test - run: dart test + run: | + dart test \ + --reporter=github \ + --concurrency=$(grep -c processor /proc/cpuinfo) diff --git a/.gitignore b/.gitignore index bc608cf..3e34161 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ # Created by `dart pub` .dart_tool/ .idea/ +coverage/ .env pubspec.lock check diff --git a/CHANGELOG.md b/CHANGELOG.md index 8efa042..c71f635 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ -## 0.0.4 [2026-01-11] +## 0.0.4 - 2026-05-24 +- Multiple architecture build. +- Fix code coverage. - Updating project plugins, CI and dependencies. ## 0.0.3 [2024-06-01] diff --git a/README.md b/README.md index e5a0959..a7d074c 100644 --- a/README.md +++ b/README.md @@ -26,15 +26,6 @@ Thank you for your continued support! [![BuyMeACoffee](https://www.buymeacoffee.com/assets/img/guidelines/download-assets-sm-2.svg)](https://www.buymeacoffee.com/edufolly) -## PIX - -Sua contribuição ajudará a impulsionar o desenvolvimento de ferramentas de -qualidade para a comunidade de desenvolvedores Flutter e Dart. Qualquer quantia -será apreciada. -Obrigado pelo seu apoio contínuo! - -[![PIX](helpers/pix.png)](https://nubank.com.br/pagar/2bt2q/RBr4Szfuwr) - ## Download ```shell diff --git a/bin/check.dart b/bin/check.dart index 4fa6e31..0b66fdf 100644 --- a/bin/check.dart +++ b/bin/check.dart @@ -1,13 +1,7 @@ import 'dart:io'; -import 'package:args/args.dart'; -import 'package:http/http.dart'; - -import 'returned_data.dart'; - -const String version = 'dev'; - -enum Method { head, get, post, put, patch, delete } +import 'package:check/main.dart'; +import 'package:check/returned_data.dart'; void main(List arguments) async { final ReturnedData data = await check(arguments); @@ -22,182 +16,3 @@ void main(List arguments) async { exit(0); } - -ArgParser buildParser() { - return ArgParser() - ..addFlag( - 'help', - abbr: 'h', - negatable: false, - help: 'Print this usage information.', - ) - ..addOption( - 'timeout', - abbr: 't', - help: 'Set the timeout for the request.', - defaultsTo: '10', - valueHelp: 'in seconds', - ) - ..addOption( - 'content-type', - help: 'Set the content type for the request.', - defaultsTo: 'application/json', - valueHelp: 'type', - ) - ..addOption( - 'user-agent', - help: 'Set the user agent for the request.', - defaultsTo: 'check/$version', - valueHelp: 'agent', - ) - ..addFlag('fail', help: 'Fail on non-200 status code.', defaultsTo: true) - ..addFlag( - 'verbose', - abbr: 'v', - negatable: false, - help: 'Show additional command output.', - ) - ..addFlag('version', negatable: false, help: 'Print the tool version.'); -} - -void printUsage(ArgParser argParser) { - print('Usage: check [METHOD] URL'); - print(argParser.usage); -} - -Future check(List arguments) async { - final ArgParser argParser = buildParser(); - try { - final ArgResults results = argParser.parse(arguments); - final verbose = results.wasParsed('verbose'); - Method method = Method.get; - int urlPos = 0; - Duration timeout = const Duration(seconds: 10); - - if (results.wasParsed('help')) { - printUsage(argParser); - return ReturnedData.empty(); - } - - if (results.wasParsed('version')) { - print('check version: $version'); - return ReturnedData.empty(); - } - - if (results.wasParsed('timeout')) { - try { - final int value = int.parse(results['timeout']); - if (value < 1) { - throw FormatException('Invalid timeout value: ${results['timeout']}'); - } - timeout = Duration(seconds: value); - } on Exception { - throw FormatException('Invalid timeout value: ${results['timeout']}'); - } - } - - if (verbose) { - print('[VERBOSE] Positional arguments: ${results.rest}'); - print('[VERBOSE] All arguments: ${results.arguments}'); - } - - if (results.rest.isEmpty) { - throw const FormatException('No URL provided.'); - } - - try { - method = Method.values.byName(results.rest.first.toLowerCase()); - urlPos = 1; - } on Error { - if (verbose) print('[VERBOSE] Using default method: GET'); - } - - if (verbose) print('[VERBOSE] Method: $method'); - - if (results.rest.length <= urlPos) { - throw const FormatException('No URL provided.'); - } - - String url = results.rest[urlPos]; - - if (url.startsWith(RegExp(r':\d+'))) { - url = 'http://localhost$url'; - } - - if (verbose) print('[VERBOSE] URL: $url'); - - Uri uri = Uri.parse(url); - - if (uri.scheme.isEmpty) { - uri = Uri.parse('http://$uri'); - } - - if (verbose) print('[VERBOSE] URI: $uri'); - - final Map headers = { - 'User-Agent': results['user-agent'], - 'Content-Type': results['content-type'], - }; - - Response response; - - switch (method) { - case Method.head: - if (verbose) print('[VERBOSE] HEAD: $uri'); - response = await head(uri, headers: headers).timeout(timeout); - case Method.get: - if (verbose) print('[VERBOSE] GET: $uri'); - response = await get(uri, headers: headers).timeout(timeout); - case Method.post: - if (verbose) print('[VERBOSE] POST: $uri'); - response = await post(uri, headers: headers).timeout(timeout); - case Method.put: - if (verbose) print('[VERBOSE] PUT: $uri'); - response = await put(uri, headers: headers).timeout(timeout); - case Method.patch: - if (verbose) print('[VERBOSE] PATCH: $uri'); - response = await patch(uri, headers: headers).timeout(timeout); - case Method.delete: - if (verbose) print('[VERBOSE] DELETE: $uri'); - response = await delete(uri, headers: headers).timeout(timeout); - } - - final int code = response.statusCode; - - if (verbose) print('[VERBOSE] Status code: $code'); - - int exitCode; - - if (code < 199) { - exitCode = 9; - } else if (code >= 200 && code < 300) { - exitCode = 0; - } else if (code >= 545) { - exitCode = 255; - } else { - exitCode = code - 290; - } - - return ReturnedData( - exitCode: exitCode, - statusCode: code, - canFail: results['fail'], - ); - } on FormatException catch (e) { - print(''); - print(e.message); - print(''); - printUsage(argParser); - return ReturnedData(exitCode: 1, statusCode: 0, canFail: true); - } on Exception catch (e) { - print(''); - print(e); - print(''); - return ReturnedData(exitCode: 7, statusCode: 0, canFail: true); - } on Error catch (e) { - print(''); - print(e); - print(''); - return ReturnedData(exitCode: 8, statusCode: 0, canFail: true); - } -} diff --git a/check.iml b/check.iml deleted file mode 100644 index 75734c9..0000000 --- a/check.iml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/helpers/create_index.dart b/helpers/create_index.dart index 361343a..0416c36 100644 --- a/helpers/create_index.dart +++ b/helpers/create_index.dart @@ -4,51 +4,119 @@ import 'package:markdown/markdown.dart'; void main(List args) { if (args.length != 2) { - print('Invalid parameters.'); + print('Uso: dart run helpers/create_index.dart '); exit(10); } final File mdFile = File(args.first); if (!mdFile.existsSync()) { - print('Markdown file not exists.'); + print('Erro: Arquivo Markdown não encontrado.'); exit(20); } const String template = ''' - + testainers - + + -
+
{{body}}
- '''; + final String generatedHtml = template.replaceAll( + '{{body}}', + markdownToHtml( + mdFile.readAsStringSync(), + extensionSet: ExtensionSet.gitHubWeb, + ), + ); + File(args.last) ..createSync(recursive: true) - ..writeAsStringSync( - template.replaceAll( - '{{body}}', - markdownToHtml( - mdFile.readAsStringSync(), - extensionSet: ExtensionSet.gitHubWeb, - ), - ), - ); -} + ..writeAsStringSync(generatedHtml); + + print('Página HTML gerada com sucesso em: ${args.last}'); +} \ No newline at end of file diff --git a/helpers/package.dart b/helpers/package.dart deleted file mode 100644 index 3bc6705..0000000 --- a/helpers/package.dart +++ /dev/null @@ -1,23 +0,0 @@ -import 'dart:convert'; -import 'dart:io'; - -void main() { - final Map check = { - 'name': 'check', - 'rootUri': '../', - 'packageUri': 'lib/', - 'languageVersion': '3.0', - }; - - final Map package = { - 'configVersion': 2, - 'packages': >[check], - 'generated': DateTime.now().toIso8601String(), - 'generator': 'pub', - 'generatorVersion': '3.0.0', - }; - - File('coverage/package.json') - ..createSync(recursive: true) - ..writeAsStringSync(json.encode(package)); -} diff --git a/helpers/pix.png b/helpers/pix.png deleted file mode 100644 index 15dbaa0..0000000 Binary files a/helpers/pix.png and /dev/null differ diff --git a/helpers/update_version.dart b/helpers/update_version.dart new file mode 100644 index 0000000..f4acbfe --- /dev/null +++ b/helpers/update_version.dart @@ -0,0 +1,24 @@ +import 'dart:io'; + +void main(List args) { + if (args.isEmpty) { + print('Error: No version provided.'); + exit(1); + } + + final String version = args.first; + final File file = File('lib/main.dart'); + + if (!file.existsSync()) { + print('Error: File not found: ${file.path}'); + exit(1); + } + + String content = file.readAsStringSync(); + + final RegExp regex = RegExp(r"const String version = 'dev';"); + content = content.replaceAll(regex, "const String version = '$version';"); + + file.writeAsStringSync(content); + print('Version updated to $version in lib/main.dart!'); +} \ No newline at end of file diff --git a/lib/main.dart b/lib/main.dart new file mode 100644 index 0000000..d0d46d5 --- /dev/null +++ b/lib/main.dart @@ -0,0 +1,187 @@ + +import 'package:args/args.dart'; +import 'package:check/returned_data.dart'; +import 'package:http/http.dart'; + +const String version = 'dev'; + +enum Method { head, get, post, put, patch, delete } + +ArgParser buildParser() { + return ArgParser() + ..addFlag( + 'help', + abbr: 'h', + negatable: false, + help: 'Print this usage information.', + ) + ..addOption( + 'timeout', + abbr: 't', + help: 'Set the timeout for the request.', + defaultsTo: '10', + valueHelp: 'in seconds', + ) + ..addOption( + 'content-type', + help: 'Set the content type for the request.', + defaultsTo: 'application/json', + valueHelp: 'type', + ) + ..addOption( + 'user-agent', + help: 'Set the user agent for the request.', + defaultsTo: 'check/$version', + valueHelp: 'agent', + ) + ..addFlag('fail', help: 'Fail on non-200 status code.', defaultsTo: true) + ..addFlag( + 'verbose', + abbr: 'v', + negatable: false, + help: 'Show additional command output.', + ) + ..addFlag('version', negatable: false, help: 'Print the tool version.'); +} + +void printUsage(ArgParser argParser) { + print('Usage: check [METHOD] URL'); + print(argParser.usage); +} + +Future check(List arguments) async { + final ArgParser argParser = buildParser(); + try { + final ArgResults results = argParser.parse(arguments); + final verbose = results.wasParsed('verbose'); + Method method = Method.get; + int urlPos = 0; + Duration timeout = const Duration(seconds: 10); + + if (results.wasParsed('help')) { + printUsage(argParser); + return ReturnedData.empty(); + } + + if (results.wasParsed('version')) { + print('check version: $version'); + return ReturnedData.empty(); + } + + if (results.wasParsed('timeout')) { + try { + final int value = int.parse(results['timeout']); + if (value < 1) { + throw FormatException('Invalid timeout value: ${results['timeout']}'); + } + timeout = Duration(seconds: value); + } on Exception { + throw FormatException('Invalid timeout value: ${results['timeout']}'); + } + } + + if (verbose) { + print('[VERBOSE] Positional arguments: ${results.rest}'); + print('[VERBOSE] All arguments: ${results.arguments}'); + } + + if (results.rest.isEmpty) { + throw const FormatException('No URL provided.'); + } + + try { + method = Method.values.byName(results.rest.first.toLowerCase()); + urlPos = 1; + } on Error { + if (verbose) print('[VERBOSE] Using default method: GET'); + } + + if (verbose) print('[VERBOSE] Method: $method'); + + if (results.rest.length <= urlPos) { + throw const FormatException('No URL provided.'); + } + + String url = results.rest[urlPos]; + + if (url.startsWith(RegExp(r':\d+'))) { + url = 'http://localhost$url'; + } + + if (verbose) print('[VERBOSE] URL: $url'); + + Uri uri = Uri.parse(url); + + if (uri.scheme.isEmpty) { + uri = Uri.parse('http://$uri'); + } + + if (verbose) print('[VERBOSE] URI: $uri'); + + final Map headers = { + 'User-Agent': results['user-agent'], + 'Content-Type': results['content-type'], + }; + + Response response; + + switch (method) { + case Method.head: + if (verbose) print('[VERBOSE] HEAD: $uri'); + response = await head(uri, headers: headers).timeout(timeout); + case Method.get: + if (verbose) print('[VERBOSE] GET: $uri'); + response = await get(uri, headers: headers).timeout(timeout); + case Method.post: + if (verbose) print('[VERBOSE] POST: $uri'); + response = await post(uri, headers: headers).timeout(timeout); + case Method.put: + if (verbose) print('[VERBOSE] PUT: $uri'); + response = await put(uri, headers: headers).timeout(timeout); + case Method.patch: + if (verbose) print('[VERBOSE] PATCH: $uri'); + response = await patch(uri, headers: headers).timeout(timeout); + case Method.delete: + if (verbose) print('[VERBOSE] DELETE: $uri'); + response = await delete(uri, headers: headers).timeout(timeout); + } + + final int code = response.statusCode; + + if (verbose) print('[VERBOSE] Status code: $code'); + + int exitCode; + + if (code < 199) { + exitCode = 9; + } else if (code >= 200 && code < 300) { + exitCode = 0; + } else if (code >= 545) { + exitCode = 255; + } else { + exitCode = code - 290; + } + + return ReturnedData( + exitCode: exitCode, + statusCode: code, + canFail: results['fail'], + ); + } on FormatException catch (e) { + print(''); + print(e.message); + print(''); + printUsage(argParser); + return ReturnedData(exitCode: 1, statusCode: 0, canFail: true); + } on Exception catch (e) { + print(''); + print(e); + print(''); + return ReturnedData(exitCode: 7, statusCode: 0, canFail: true); + } on Error catch (e) { + print(''); + print(e); + print(''); + return ReturnedData(exitCode: 8, statusCode: 0, canFail: true); + } +} diff --git a/bin/returned_data.dart b/lib/returned_data.dart similarity index 100% rename from bin/returned_data.dart rename to lib/returned_data.dart diff --git a/pubspec.yaml b/pubspec.yaml index c044ee1..b39fa97 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -5,7 +5,7 @@ repository: https://github.com/testainers/check homepage: https://check.testainers.com environment: - sdk: ^3.9.0 + sdk: ^3.11.0 dependencies: # https://pub.dev/packages/args @@ -16,13 +16,16 @@ dependencies: dev_dependencies: # https://pub.dev/packages/lints - lints: ^6.0.0 + lints: ^6.1.0 # https://pub.dev/packages/markdown markdown: ^7.3.0 + # https://pub.dev/packages/coverage + coverage: ^1.15.0 + # https://pub.dev/packages/test - test: ^1.29.0 + test: ^1.31.0 # https://pub.dev/packages/testainers - testainers: ^0.3.0 + testainers: ^0.4.0 diff --git a/test/check_local_test.dart b/test/check_local_test.dart index 56e93ee..7ea58fb 100644 --- a/test/check_local_test.dart +++ b/test/check_local_test.dart @@ -1,25 +1,16 @@ +import 'package:check/main.dart'; +import 'package:check/returned_data.dart'; import 'package:test/test.dart'; import 'package:testainers/testainers.dart'; -import '../bin/check.dart'; -import '../bin/returned_data.dart'; - -/// -/// -/// void main() { - /// - /// - /// group('basic tests', () { final TestainersHttpbucket container = TestainersHttpbucket(); - /// setUpAll(() async { await container.start(); }); - /// test('Root Get', () async { expect( await check([':${container.httpPort}']), @@ -27,7 +18,6 @@ void main() { ); }); - /// test('Method GET', () async { expect( await check([':${container.httpPort}/methods']), @@ -35,7 +25,6 @@ void main() { ); }); - /// test('Method HEAD', () async { expect( await check(['HEAD', ':${container.httpPort}/methods']), @@ -43,7 +32,6 @@ void main() { ); }); - /// test('Method POST', () async { expect( await check(['POST', ':${container.httpPort}/methods']), @@ -51,7 +39,6 @@ void main() { ); }); - /// test('Method PUT', () async { expect( await check(['PUT', ':${container.httpPort}/methods']), @@ -59,7 +46,6 @@ void main() { ); }); - /// test('Method PATCH', () async { expect( await check(['PATCH', ':${container.httpPort}/methods']), @@ -67,7 +53,6 @@ void main() { ); }); - /// test('Method DELETE', () async { expect( await check(['DELETE', ':${container.httpPort}/methods']), @@ -75,7 +60,6 @@ void main() { ); }); - /// test('Status GET 200', () async { expect( await check([':${container.httpPort}/status/200']), @@ -83,7 +67,6 @@ void main() { ); }); - /// test('Status GET 201', () async { expect( await check([':${container.httpPort}/status/201']), @@ -91,7 +74,6 @@ void main() { ); }); - /// test('Status GET 202', () async { expect( await check([':${container.httpPort}/status/202']), @@ -99,7 +81,6 @@ void main() { ); }); - /// test('Status GET 204', () async { expect( await check([':${container.httpPort}/status/204']), @@ -107,7 +88,6 @@ void main() { ); }); - /// test('Status GET 300', () async { expect( await check([':${container.httpPort}/status/300']), @@ -115,7 +95,6 @@ void main() { ); }); - /// test('Status GET 300 no Fail', () async { expect( await check(['--no-fail', ':${container.httpPort}/status/300']), @@ -123,7 +102,6 @@ void main() { ); }); - /// test('Status GET 300', () async { expect( await check(['--no-fail', ':${container.httpPort}/status/300']), @@ -131,7 +109,6 @@ void main() { ); }); - /// test('Status GET 389', () async { expect( await check([':${container.httpPort}/status/389']), @@ -139,7 +116,6 @@ void main() { ); }); - /// test('Status GET 390', () async { expect( await check([':${container.httpPort}/status/390']), @@ -147,7 +123,6 @@ void main() { ); }); - /// test('Status GET 399', () async { expect( await check([':${container.httpPort}/status/399']), @@ -155,7 +130,6 @@ void main() { ); }); - /// test('Status GET 400', () async { expect( await check([':${container.httpPort}/status/400']), @@ -163,7 +137,6 @@ void main() { ); }); - /// test('Status GET 400 no Fail', () async { expect( await check(['--no-fail', ':${container.httpPort}/status/400']), @@ -171,7 +144,6 @@ void main() { ); }); - /// test('Status GET 401', () async { expect( await check([':${container.httpPort}/status/401']), @@ -179,7 +151,6 @@ void main() { ); }); - /// test('Status GET 403', () async { expect( await check([':${container.httpPort}/status/403']), @@ -187,7 +158,6 @@ void main() { ); }); - /// test('Status GET 404', () async { expect( await check([':${container.httpPort}/status/404']), @@ -195,7 +165,6 @@ void main() { ); }); - /// test('Status GET 500', () async { expect( await check([':${container.httpPort}/status/500']), @@ -203,7 +172,6 @@ void main() { ); }); - /// test('Status GET 500 no Fail', () async { expect( await check(['--no-fail', ':${container.httpPort}/status/500']), @@ -211,7 +179,6 @@ void main() { ); }); - /// test('Status GET 544', () async { expect( await check([':${container.httpPort}/status/544']), @@ -219,7 +186,6 @@ void main() { ); }); - /// test('Status GET 545', () async { expect( await check([':${container.httpPort}/status/545']), @@ -227,7 +193,6 @@ void main() { ); }); - /// test('Status GET 546', () async { expect( await check([':${container.httpPort}/status/546']), @@ -235,7 +200,6 @@ void main() { ); }); - /// test('Status GET 599', () async { expect( await check([':${container.httpPort}/status/599']), @@ -243,7 +207,6 @@ void main() { ); }); - /// test('Status GET 599 no Fail', () async { expect( await check(['--no-fail', ':${container.httpPort}/status/599']), @@ -251,7 +214,6 @@ void main() { ); }); - /// tearDownAll(container.stop); }); }