Skip to content

Tchain Client against devnet #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 123 commits into from
Aug 5, 2024
Merged
Show file tree
Hide file tree
Changes from 121 commits
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
84d4e25
add tfchain client pkg
AlaaElattar Nov 28, 2023
e93fcc2
add query contracts class
AlaaElattar Nov 28, 2023
d83f218
add queryClient modules
AlaaElattar Nov 30, 2023
f38dbd2
ignore generated dir in workflow
AlaaElattar Nov 30, 2023
bfe677a
exclude generated dir from linting
AlaaElattar Nov 30, 2023
2414e97
fin path
AlaaElattar Nov 30, 2023
462a181
fix build workflow
AlaaElattar Nov 30, 2023
301cf65
fix workflow
AlaaElattar Nov 30, 2023
2fbef97
fix build
AlaaElattar Nov 30, 2023
a63dd22
fix command
AlaaElattar Nov 30, 2023
215b1c2
remove test dir in tfchain as it's empty
AlaaElattar Nov 30, 2023
45ac438
add test for keypair from address
AlaaElattar Nov 30, 2023
a3645fc
remove unused import
AlaaElattar Nov 30, 2023
ba95fb6
add tfchain client
AlaaElattar Dec 13, 2023
b727132
support sr25519 and add dao model
AlaaElattar Mar 12, 2024
d60005c
improve client && balances module && linting workflow
AlaaElattar Mar 13, 2024
dbcd69d
add twins && T&C modules
AlaaElattar Mar 17, 2024
cce80f7
fix tests
AlaaElattar Mar 17, 2024
a2f5afa
fix bug in signer pkg
AlaaElattar Mar 17, 2024
6ed2bee
remove await from sign&verify with hex seed test
AlaaElattar Mar 17, 2024
a151814
remove seed and hex seed tests
AlaaElattar Mar 17, 2024
93eef89
add kvStore module
AlaaElattar Apr 17, 2024
b7fe839
add listall and delete all for kvStore
AlaaElattar Apr 24, 2024
111c0c4
update git ignore
AlaaElattar Jun 2, 2024
67fffdc
Merge branch 'main' of https://github.com/codescalers/tfgrid-sdk-dart…
AlaaElattar Jun 30, 2024
b4f4e54
add .vscode to gitignore
AlaaElattar Jun 30, 2024
70cabcf
Delete .vscode directory
AlaaElattar Jun 30, 2024
08bf396
remove gitignore from tfchain dir
AlaaElattar Jun 30, 2024
2ffc52f
Merge branch 'main_signer_workflows_tfchain' of https://github.com/co…
AlaaElattar Jun 30, 2024
d7604d5
Delete packages/tfchain_client/build directory
AlaaElattar Jun 30, 2024
60343bd
fix format in analysis options
AlaaElattar Jun 30, 2024
a36851a
remove anlysis options from inside tfchain dir
AlaaElattar Jun 30, 2024
7ca24c2
fix melos analyze
AlaaElattar Jun 30, 2024
d88a34d
remove models && add parameters from function directly
AlaaElattar Jun 30, 2024
d069ed5
remove keypair from address function && test
AlaaElattar Jul 1, 2024
f8446d1
ignore pubspec
AlaaElattar Jul 1, 2024
2600abe
fix getting balance add integration tests
AlaaElattar Jul 3, 2024
5d5cab7
add tests to farms && nodes && pricing policies
AlaaElattar Jul 3, 2024
c9aa57c
add tests for query contracts
AlaaElattar Jul 4, 2024
65ba465
add decoding events and transaction && fix transfer && working on con…
AlaaElattar Jul 10, 2024
789b9c6
Fix creating name contracts
AhmedHanafy725 Jul 11, 2024
520a13e
Add method to filter my events
AhmedHanafy725 Jul 11, 2024
15a0192
Throw error in case of extrinsic failed
AhmedHanafy725 Jul 11, 2024
0b6c458
Validate that the extrisic success
AhmedHanafy725 Jul 11, 2024
5172d07
Wait for the extrinsic result
AhmedHanafy725 Jul 14, 2024
a5389e0
Fix twin class construction
AhmedHanafy725 Jul 14, 2024
8ac5388
Remove useless method
AhmedHanafy725 Jul 14, 2024
c86e675
Fix get my balance method
AhmedHanafy725 Jul 14, 2024
cec9065
Update bin script
AhmedHanafy725 Jul 14, 2024
682e7f1
Merge pull request #22 from codescalers/main_tfchain
AhmedHanafy725 Jul 14, 2024
30c2376
Apply better client interface using getters
AhmedHanafy725 Jul 14, 2024
4f0f1cc
Fix bin script to use the new client interface
AhmedHanafy725 Jul 14, 2024
946a56d
modify all methods with Client client
AlaaElattar Jul 14, 2024
64dcd80
Merge branch 'main_signer_workflows_tfchain' into main_tfchain_interface
AhmedHanafy725 Jul 14, 2024
ad93da2
Merge pull request #23 from codescalers/main_tfchain_interface
AhmedHanafy725 Jul 14, 2024
21b3529
Add method to convert from dynamic list to unit8 list
AhmedHanafy725 Jul 14, 2024
aa1d83f
Add module error mapper
AhmedHanafy725 Jul 14, 2024
1524871
Use error mapper to have nicer code error
AhmedHanafy725 Jul 14, 2024
50ed15d
add integration tests for extrinsics except for contracts module
AlaaElattar Jul 14, 2024
23ce369
Merge pull request #24 from codescalers/main_tfchain_errors
AhmedHanafy725 Jul 15, 2024
d949bfa
Add else statment for the extrinsic error in case it wasn't a module …
AhmedHanafy725 Jul 15, 2024
ff8d7ce
Fix balance transfer
AhmedHanafy725 Jul 15, 2024
2738d33
add contracts and balances tests
AlaaElattar Jul 15, 2024
1b58439
Apply formatting on the repo
AhmedHanafy725 Jul 15, 2024
e9f7fd7
Merge branch 'main_signer_workflows_tfchain' into main_tfchain_fix_tr…
AhmedHanafy725 Jul 15, 2024
9d20db7
Exclude pubspec.yaml from the analysis options
AhmedHanafy725 Jul 15, 2024
71aeede
Merge pull request #25 from codescalers/main_tfchain_fix_transfer
AhmedHanafy725 Jul 15, 2024
0fb9a0e
fix tests
AlaaElattar Jul 15, 2024
92249d7
fix Test Get Twin Id with account Id
AlaaElattar Jul 15, 2024
5982488
fix workflow tests
AlaaElattar Jul 15, 2024
952dea2
fix swap to stellar test
AlaaElattar Jul 15, 2024
457eef7
add url, types and mnemonic in env vars
AlaaElattar Jul 15, 2024
acbfebf
add env vars in github workflows
AlaaElattar Jul 15, 2024
d5ef456
debug env vars
AlaaElattar Jul 15, 2024
c9497ca
fix workflow
AlaaElattar Jul 15, 2024
cec5123
fix workflow
AlaaElattar Jul 15, 2024
8fb54a0
remove redundancy from coverage workflow file
AlaaElattar Jul 15, 2024
879f7f5
remove printing secrets
AlaaElattar Jul 16, 2024
64b4e75
add delay between create contract and cancel it && add tearDown in al…
AlaaElattar Jul 16, 2024
f121cc5
replace teardown with teardownAll
AlaaElattar Jul 16, 2024
0d61bb0
remove provider=null in disconnect
AlaaElattar Jul 16, 2024
813574b
fix swap to stellar test
AlaaElattar Jul 16, 2024
31a5593
comment create contract then cancel it
AlaaElattar Jul 16, 2024
5ce4437
add test for disconnect method
AlaaElattar Jul 16, 2024
7794c62
change inblock to finalized
AlaaElattar Jul 16, 2024
010b316
update tests with deleting contracts in teardownAll
AlaaElattar Jul 16, 2024
24b95aa
update readme file
AlaaElattar Jul 16, 2024
c226c23
apply comments on code
AlaaElattar Jul 16, 2024
dedd5dd
apply comments on tests && fix liniting
AlaaElattar Jul 16, 2024
38081e8
add shared data for all tests
AlaaElattar Jul 17, 2024
db2116e
make env vars in sharedSetup
AlaaElattar Jul 17, 2024
490f818
fix linting
AlaaElattar Jul 17, 2024
3eae9bf
update transfer test && add condition when connecting
AlaaElattar Jul 17, 2024
c8b4e5d
fix tests
AlaaElattar Jul 17, 2024
e7fccbe
remove my mnemonic from sharedSetup
AlaaElattar Jul 17, 2024
0be5d2f
update generateRandomName function
AlaaElattar Jul 17, 2024
f1fc5c3
add generation types in readme
AlaaElattar Jul 17, 2024
b93141a
support hexseed when creating keypair
AlaaElattar Jul 17, 2024
9e18500
improve coditions of signerType
AlaaElattar Jul 17, 2024
303443b
apply pr comments
AlaaElattar Jul 17, 2024
4adb732
return isValidSeed and use it
AlaaElattar Jul 17, 2024
0b5c43f
make all feilds private
AlaaElattar Jul 18, 2024
d9b5a9c
fix bug
AlaaElattar Jul 18, 2024
400e5e4
fix bug
AlaaElattar Jul 18, 2024
0648c84
remove mnemonic from sharedSetup
AlaaElattar Jul 18, 2024
6982bb0
modify tests to be against docker image of chain
AlaaElattar Jul 24, 2024
5ae795b
remove network host
AlaaElattar Jul 24, 2024
261f3ec
fix running image from workflow
AlaaElattar Jul 24, 2024
c2e8810
add -d to the docker command
AlaaElattar Jul 24, 2024
29bf301
make setupAll at the beginning of file
AlaaElattar Jul 24, 2024
ede3f8a
apply pr comments
AlaaElattar Jul 28, 2024
8b4ee0b
add null check on twin
AlaaElattar Jul 28, 2024
2165a79
fix ip creation
AlaaElattar Jul 30, 2024
e7a5ba3
make setup manager singelton
AlaaElattar Jul 31, 2024
3e6f10c
fix balances test
AlaaElattar Jul 31, 2024
686b393
remove stopping docker from workflow
AlaaElattar Jul 31, 2024
d6bc18a
change tearDown to tearDownAll
AlaaElattar Jul 31, 2024
a8b12d4
support both initialization of clients from setupManager
AlaaElattar Aug 1, 2024
0dfb3a6
update allowed public ips
AlaaElattar Aug 4, 2024
10b4f49
set subnet mask to 24
AlaaElattar Aug 4, 2024
a4544f4
remove debugging logs
AlaaElattar Aug 4, 2024
fdc63cf
change condition to include Bob && remove commented code
AlaaElattar Aug 5, 2024
6294c22
remove commented code from tests
AlaaElattar Aug 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 18 additions & 10 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main
push:
branches:
- main
- main

jobs:
build:
Expand Down Expand Up @@ -34,26 +34,34 @@ jobs:
- name: Install dependencies
run: melos bootstrap

- name: Run unit tests
run: melos run unit_test

- name: Create coverage directory
run: mkdir -p coverage
- name: Start TFChain Docker Container
run: |
sudo docker run -d --network host ghcr.io/threefoldtech/tfchain --dev --rpc-cors all --rpc-external --rpc-methods=safe

- name: Wait for TFChain to be ready
run: |
while ! nc -z localhost 9944; do
echo "Waiting for TFChain to be ready..."
sleep 5
done

- name: Run unit tests
- name: Run unit tests and generate coverage
run: |
melos exec rm -rf coverage
melos run unit_test

- name: Create coverage directory
run: mkdir -p coverage

- name: Calculate and merge coverage
if: success()
run: |
melos exec --dir-exists="coverage" -- bash -c 'dart pub global run coverde filter --input coverage/lcov.info --output coverage/filtered.lcov.info --filters .g.dart'
melos exec --dir-exists="coverage" -- bash -c 'dart pub global run coverde value -i coverage/filtered.lcov.info > coverage/result.txt'

- name: Upload coverage to Codecov
if: success()
if: success()
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage/filtered.lcov.info
files: coverage/filtered.lcov.info
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ coverage/
/packages/*/.dart_tool
/packages/*/build
/packages/*/idea

.vscode/
*.iml
.idea
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

[![melos](https://img.shields.io/badge/maintained%20with-melos-f700ff.svg?style=flat-square)](https://github.com/invertase/melos) [![codecov](https://codecov.io/gh/codescalers/tfgrid-sdk-dart/graph/badge.svg?token=O34UDTMW5O)](https://codecov.io/gh/codescalers/tfgrid-sdk-dart)

This repo contains the dart clients for Threefold grid.
## Packages

- [signer](./packages/signer/README.md)
- [tfchain_client](./packages/tfchain_client/README.md)
## Prerequisites

Make sure you have the following tools installed:
Expand All @@ -10,6 +15,7 @@ Make sure you have the following tools installed:
- [Melos](https://pub.dev/packages/melos)
- [Coverde](https://pub.dev/packages/coverde)


## Initialize Workspace

To initialize workspace in all packages run the following command
Expand Down
7 changes: 7 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
analyzer:
errors:
unused_local_variable: ignore
exclude:
- packages/tfchain_client/lib/generated/**
- packages/tfchain_client/pubspec.yaml
- pubspec.yaml
2 changes: 1 addition & 1 deletion packages/signer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ dart pub get
To run the tests, run the following command

```bash
dart test
dart test .
```

## Generate Coverage
Expand Down
4 changes: 2 additions & 2 deletions packages/signer/bin/signer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ void main() async {
]);

final signer2 = Signer();
await signer2.fromSeed(seedUint8List, KPType.ed25519);
signer2.fromSeed(seedUint8List, KPType.ed25519);
final signatureFromSeed = signer2.sign(data);
print("Signature from Seed: $signatureFromSeed");

final signer3 = Signer();
signer3.fromHexSeed(
'0x6c1d94caa7bf0a0d7ef0983c1823e9ac6abed57221d57d0922654352d85cb1e4',
KPType.ed25519);
final signatureFromSeed2 = await signer3.sign(data);
final signatureFromSeed2 = signer3.sign(data);
print("Signature from Hex Seed: $signatureFromSeed2");
}
17 changes: 16 additions & 1 deletion packages/signer/lib/src/sign.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
part of '../signer.dart';
// TODO: should return keypair or not ?

class Signer {
KeyPair? keypair;
Expand Down Expand Up @@ -29,15 +30,29 @@ class Signer {
}
}

void fromHexSeed(String hexSeed, KPType type) {
KeyPair? fromHexSeed(String hexSeed, KPType type) {
try {
final seed = HEX.decode(hexSeed.replaceAll('0x', ''));
keypair = fromSeed(Uint8List.fromList(seed), type);
return keypair;
} catch (e) {
throw Exception("Failed to create keyPair from hex seed. Error: $e");
}
}

Future<KeyPair?> fromUri(String uri, KPType type) async {
try {
if (type == KPType.sr25519) {
keypair = await KeyPair.sr25519.fromUri(uri);
} else if (type == KPType.ed25519) {
keypair = await KeyPair.ed25519.fromUri(uri);
}
return keypair;
} catch (e) {
throw Exception("Failed to create keyPair from mnemonic. Error: $e");
}
}

String sign(String data) {
if (keypair == null) {
throw Exception("keypair not initialized.");
Expand Down
70 changes: 39 additions & 31 deletions packages/signer/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ packages:
dependency: transitive
description:
name: _fe_analyzer_shared
sha256: "36a321c3d2cbe01cbcb3540a87b8843846e0206df3e691fa7b23e19e78de6d49"
sha256: "0b2f2bd91ba804e53a61d757b986f89f1f9eaed5b11e4b2f5a2468d86d6c9fc7"
url: "https://pub.dev"
source: hosted
version: "65.0.0"
version: "67.0.0"
adaptive_number:
dependency: transitive
description:
Expand All @@ -21,18 +21,18 @@ packages:
dependency: transitive
description:
name: analyzer
sha256: dfe03b90ec022450e22513b5e5ca1f01c0c01de9c3fba2f7fd233cb57a6b9a07
sha256: "37577842a27e4338429a1cbc32679d508836510b056f1eedf0c8d20e39c1383d"
url: "https://pub.dev"
source: hosted
version: "6.3.0"
version: "6.4.1"
args:
dependency: transitive
description:
name: args
sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596
sha256: "7cf60b9f0cc88203c5a190b4cd62a99feea42759a7fa695010eb5de1c0b2252a"
url: "https://pub.dev"
source: hosted
version: "2.4.2"
version: "2.5.0"
async:
dependency: transitive
description:
Expand Down Expand Up @@ -85,10 +85,10 @@ packages:
dependency: "direct dev"
description:
name: coverage
sha256: ac86d3abab0f165e4b8f561280ff4e066bceaac83c424dd19f1ae2c2fcd12ca9
sha256: "8acabb8306b57a409bf4c83522065672ee13179297a6bb0cb9ead73948df7c76"
url: "https://pub.dev"
source: hosted
version: "1.7.1"
version: "1.7.2"
crypto:
dependency: transitive
description:
Expand Down Expand Up @@ -133,10 +133,10 @@ packages:
dependency: transitive
description:
name: ffi
sha256: "7bf0adc28a23d395f19f3f1eb21dd7cfd1dd9f8e1c50051c069122e6853bc878"
sha256: "493f37e7df1804778ff3a53bd691d8692ddf69702cf4c1c1096a2e41b4779e21"
url: "https://pub.dev"
source: hosted
version: "2.1.0"
version: "2.1.2"
file:
dependency: transitive
description:
Expand Down Expand Up @@ -165,10 +165,10 @@ packages:
dependency: transitive
description:
name: frontend_server_client
sha256: "408e3ca148b31c20282ad6f37ebfa6f4bdc8fede5b74bc2f08d9d92b55db3612"
sha256: f64a0333a82f30b0cca061bc3d143813a486dc086b574bfb233b7c1372427694
url: "https://pub.dev"
source: hosted
version: "3.2.0"
version: "4.0.0"
glob:
dependency: transitive
description:
Expand Down Expand Up @@ -237,10 +237,10 @@ packages:
dependency: transitive
description:
name: matcher
sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e"
sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb
url: "https://pub.dev"
source: hosted
version: "0.12.16"
version: "0.12.16+1"
merlin:
dependency: transitive
description:
Expand All @@ -253,18 +253,18 @@ packages:
dependency: transitive
description:
name: meta
sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04
sha256: "25dfcaf170a0190f47ca6355bdd4552cb8924b430512ff0cafb8db9bd41fe33b"
url: "https://pub.dev"
source: hosted
version: "1.11.0"
version: "1.14.0"
mime:
dependency: transitive
description:
name: mime
sha256: e4ff8e8564c03f255408decd16e7899da1733852a9110a58fe6d1b817684a63e
sha256: "2e123074287cc9fd6c09de8336dae606d1ddb88d9ac47358826db698c176a1f2"
url: "https://pub.dev"
source: hosted
version: "1.0.4"
version: "1.0.5"
node_preamble:
dependency: transitive
description:
Expand All @@ -285,10 +285,10 @@ packages:
dependency: transitive
description:
name: path
sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
url: "https://pub.dev"
source: hosted
version: "1.8.3"
version: "1.9.0"
pointycastle:
dependency: transitive
description:
Expand Down Expand Up @@ -477,26 +477,26 @@ packages:
dependency: "direct dev"
description:
name: test
sha256: a1f7595805820fcc05e5c52e3a231aedd0b72972cb333e8c738a8b1239448b6f
sha256: d87214d19fb311997d8128ec501a980f77cb240ac4e7e219accf452813ff473c
url: "https://pub.dev"
source: hosted
version: "1.24.9"
version: "1.25.3"
test_api:
dependency: transitive
description:
name: test_api
sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b"
sha256: "2419f20b0c8677b2d67c8ac4d1ac7372d862dc6c460cdbb052b40155408cd794"
url: "https://pub.dev"
source: hosted
version: "0.6.1"
version: "0.7.1"
test_core:
dependency: transitive
description:
name: test_core
sha256: a757b14fc47507060a162cc2530d9a4a2f92f5100a952c7443b5cad5ef5b106a
sha256: "2236f70be1e5ab405c675e88c36935a87dad9e05a506b57dd5c0f617f5aebcb2"
url: "https://pub.dev"
source: hosted
version: "0.5.9"
version: "0.6.1"
typed_data:
dependency: transitive
description:
Expand All @@ -517,10 +517,10 @@ packages:
dependency: transitive
description:
name: vm_service
sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957
sha256: a75f83f14ad81d5fe4b3319710b90dec37da0e22612326b696c9e1b8f34bbf48
url: "https://pub.dev"
source: hosted
version: "13.0.0"
version: "14.2.0"
watcher:
dependency: transitive
description:
Expand All @@ -529,14 +529,22 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.1.0"
web:
dependency: transitive
description:
name: web
sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27"
url: "https://pub.dev"
source: hosted
version: "0.5.1"
web_socket_channel:
dependency: transitive
description:
name: web_socket_channel
sha256: d88238e5eac9a42bb43ca4e721edba3c08c6354d4a53063afaa568516217621b
sha256: "58c6666b342a38816b2e7e50ed0f1e261959630becd4c879c4f26bfa14aa5a42"
url: "https://pub.dev"
source: hosted
version: "2.4.0"
version: "2.4.5"
webkit_inspection_protocol:
dependency: transitive
description:
Expand All @@ -554,4 +562,4 @@ packages:
source: hosted
version: "3.1.2"
sdks:
dart: ">=3.2.0 <4.0.0"
dart: ">=3.3.0 <4.0.0"
1 change: 0 additions & 1 deletion packages/signer/test/signer_test.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'dart:typed_data';

import 'package:signer/signer.dart';
import 'package:test/test.dart';

Expand Down
3 changes: 3 additions & 0 deletions packages/tfchain_client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 1.0.0

- Initial version.
7 changes: 7 additions & 0 deletions packages/tfchain_client/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.PHONY: unit_test_and_coverage

coverage:
@rm -rf coverage && \
flutter test --no-pub --coverage && \
dart pub global run coverde filter --input ./coverage/lcov.info --output ./coverage/filtered.lcov.info --filters .g.dart && \
dart pub global run coverde value -i ./coverage/filtered.lcov.info > ./coverage/result.txt
Loading
Loading