From 11b30b9df43c8af131f518108fe60aa1c4abd01e Mon Sep 17 00:00:00 2001 From: Matthew Nitschke Date: Sun, 21 Jan 2024 14:48:01 -0700 Subject: [PATCH] attempted fix of diagnostics test --- .github/workflows/tests.yaml | 12 +++-- .../relationships-project/lib/main.dart | 54 ------------------- 2 files changed, 7 insertions(+), 59 deletions(-) delete mode 100755 snapshots/output/relationships-project/lib/main.dart diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 2fd88b5..95ed94e 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -48,10 +48,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Install scip cli - run: | - bash -c 'curl -L "https://github.com/sourcegraph/scip/releases/download/v0.3.0/scip-linux-amd64.tar.gz"' | tar xzf - scip - ./scip --version - uses: dart-lang/setup-dart@v1 with: sdk: 2.19.6 @@ -62,12 +58,18 @@ jobs: run: dart pub get working-directory: ./snapshots/input/diagnostics + - name: Install scip cli + run: | + bash -c 'curl -L "https://github.com/sourcegraph/scip/releases/download/v0.3.0/scip-linux-amd64.tar.gz"' | tar xzf - scip + ./scip --version + - name: Install JQ run: sudo apt-get install jq - name: Snapshots Diff Check run: | - make gen-snap_diagnostics + dart run scip_dart ./snapshots/input/diagnostics + ./scip print --json ./index.scip | jq '.documents[].occurrences[] | select(.diagnostics)' | jq -s . > ./snapshots/output/diagnostics/output.json if [[ -z "$(git status --porcelain ./snapshots/output)" ]]; then diff --git a/snapshots/output/relationships-project/lib/main.dart b/snapshots/output/relationships-project/lib/main.dart deleted file mode 100755 index d458121..0000000 --- a/snapshots/output/relationships-project/lib/main.dart +++ /dev/null @@ -1,54 +0,0 @@ - abstract class Mammal { -// definition scip-dart pub dart_test 1.0.0 lib/main.dart/ -// ^^^^^^ definition scip-dart pub dart_test 1.0.0 lib/main.dart/Mammal# -// documentation ```dart - String get hierarchy; -// ^^^^^^ reference scip-dart pub dart:core 2.19.0 dart:core/string.dart/String# -// ^^^^^^^^^ definition scip-dart pub dart_test 1.0.0 lib/main.dart/Mammal#hierarchy. -// documentation ```dart - } - - abstract class Animal extends Mammal { -// ^^^^^^ definition scip-dart pub dart_test 1.0.0 lib/main.dart/Animal# -// documentation ```dart -// relationship scip-dart pub dart_test 1.0.0 lib/main.dart/Mammal# implementation -// ^^^^^^ reference scip-dart pub dart_test 1.0.0 lib/main.dart/Mammal# - String sound() => 'NOISE!'; -// ^^^^^^ reference scip-dart pub dart:core 2.19.0 dart:core/string.dart/String# -// ^^^^^ definition scip-dart pub dart_test 1.0.0 lib/main.dart/Animal#sound(). -// documentation ```dart - } - - mixin SwimAction { -// ^^^^^^^^^^ definition scip-dart pub dart_test 1.0.0 lib/main.dart/SwimAction# -// documentation ```dart - void execute() => print('swimming...'); -// ^^^^^^^ definition scip-dart pub dart_test 1.0.0 lib/main.dart/SwimAction#execute(). -// documentation ```dart -// ^^^^^ reference scip-dart pub dart:core 2.19.0 dart:core/print.dart/print(). - } - - class Dog extends Animal with SwimAction { -// ^^^ definition scip-dart pub dart_test 1.0.0 lib/main.dart/Dog# -// documentation ```dart -// relationship scip-dart pub dart_test 1.0.0 lib/main.dart/Animal# implementation -// relationship scip-dart pub dart_test 1.0.0 lib/main.dart/Mammal# implementation -// relationship scip-dart pub dart_test 1.0.0 lib/main.dart/SwimAction# implementation -// ^^^^^^ reference scip-dart pub dart_test 1.0.0 lib/main.dart/Animal# -// ^^^^^^^^^^ reference scip-dart pub dart_test 1.0.0 lib/main.dart/SwimAction# - @override -// ^^^^^^^^ reference scip-dart pub dart:core 2.19.0 dart:core/annotations.dart/override. - String sound() => 'woof'; -// ^^^^^^ reference scip-dart pub dart:core 2.19.0 dart:core/string.dart/String# -// ^^^^^ definition scip-dart pub dart_test 1.0.0 lib/main.dart/Dog#sound(). -// documentation ```dart -// relationship scip-dart pub dart_test 1.0.0 lib/main.dart/Animal#sound(). implementation reference - - @override -// ^^^^^^^^ reference scip-dart pub dart:core 2.19.0 dart:core/annotations.dart/override. - String get hierarchy => 'dog.animal.mammal'; -// ^^^^^^ reference scip-dart pub dart:core 2.19.0 dart:core/string.dart/String# -// ^^^^^^^^^ definition scip-dart pub dart_test 1.0.0 lib/main.dart/Dog#hierarchy. -// documentation ```dart -// relationship scip-dart pub dart_test 1.0.0 lib/main.dart/Mammal#hierarchy. implementation reference - }