Klebert-Engineering / simfil

The Simple Map Filter Language Interpreter 🌳.
BSD 3-Clause "New" or "Revised" License
6 stars 0 forks source link

Support Model JSON Serialization #84

Closed johannes-wolf closed 3 months ago

johannes-wolf commented 4 months ago

Adds a toJson() to ModelPool and ModelNode + converting an object to a string will give a JSON representation.

Marks Fields::resolve as const.

github-actions[bot] commented 4 months ago

Test Results

 1 files  Β±0   1 suites  Β±0   3m 9s :stopwatch: -1s 34 tests Β±0  34 :white_check_mark: Β±0  0 :zzz: Β±0  0 :x: Β±0  35 runsβ€Š Β±0  35 :white_check_mark: Β±0  0 :zzz: Β±0  0 :x: Β±0 

Results for commit b0f3456f. ± Comparison against base commit fdaef25b.

This pull request removes 1 and adds 1 tests. Note that renamed tests count towards both. ``` Switch Model Fields Dict ‑ Switch Model Fields Dict ``` ``` Switch Model String Pool ‑ Switch Model String Pool ```

:recycle: This comment has been updated with latest results.

sonarcloud[bot] commented 3 months ago

Quality Gate Passed Quality Gate passed

Issues
52 New issues
31 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

github-actions[bot] commented 3 months ago
Package Line Rate Branch Rate Health
include.simfil 61% 43% βž–
include.simfil.model 87% 61% βœ”
src 73% 42% βž–
src.model 80% 47% βœ”
Summary 74% (2058 / 2790) 43% (1660 / 3835) βž–

Minimum allowed line rate is 50%