Skip to content

Commit 6be8e56

Browse files
committed
chore: 100% coverage
1 parent af15cc3 commit 6be8e56

5 files changed

Lines changed: 402 additions & 149 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v4
1212
- uses: dart-lang/setup-dart@v1
13+
- run: sudo apt-get install lcov -y
14+
- run: mkdir -p ./build/coverage
1315
- run: dart pub get
1416
- run: dart format --output=none --set-exit-if-changed .
1517
- run: dart analyze
16-
- run: dart test
18+
- rune: dart pub global activate coverage
19+
- run: dart test test/main.dart --coverage=./build/coverage
20+
- run: dart pub global run coverage:format_coverage --lcov --check-ignore --in=./build/coverage --out=./build/lcov.info --packages=./.dart_tool/package_config.json --report-on=lib
21+
- run: "genhtml ./build/lcov.info > /dev/null | grep 'lines.......: 100.0%'"

CHANGELOG.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,28 @@
1-
## 1.0.5
1+
# 2.0.0
22

3+
- If a element of map of a list is not JSON serializable it'll be ignore but the subsequence elements will be added to the resulting `Json`
34
- `Json` and `JsonPayload` equal operator override to handle comparison by instance or by value
45

5-
## 1.0.4
6+
## Breaking changes
7+
- `ofType`, `listOf` and `mapOf` will wrap the element in a `Json` when calling `builder` instead of the raw value
8+
- When expecting a single type when raw value is heterogeneous list and maps, matching type element will remain and the rest will be discarded instead of returning empty list/map
9+
10+
# 1.0.4
611

712
- `Json` and `JsonPayload` are json encodable, meaning they can be use with `darat:convert jsonEncode`
813

9-
## 1.0.3
14+
# 1.0.3
1015

1116
- Fixed `JsonPayload` nested assignment
1217

13-
## 1.0.2
18+
# 1.0.2
1419

1520
- Fixed `JsonPayload` nested assignment
1621

17-
## 1.0.1
22+
# 1.0.1
1823

1924
- `.float` returns a value when actual value is an integer
2025

21-
## 1.0.0
26+
# 1.0.0
2227

2328
- Initial version.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ test_with_coverage:
22
dart pub global activate coverage
33
dart test test/main.dart --coverage=./build/coverage
44
dart pub global run coverage:format_coverage --lcov --check-ignore --in=./build/coverage --out=./build/lcov.info --packages=./.dart_tool/package_config.json --report-on=lib
5-
genhtml ./build/lcov.info --output=./build/coverage/html
5+
genhtml ./build/lcov.info --output=./build/coverage/html

0 commit comments

Comments
 (0)