Skip to content
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

⭐ add typemaps for simple types #3463

Merged
merged 2 commits into from
Mar 2, 2024
Merged

⭐ add typemaps for simple types #3463

merged 2 commits into from
Mar 2, 2024

Conversation

arlimus
Copy link
Member

@arlimus arlimus commented Mar 2, 2024

Basically:

> int(1.23)
1

> bool(1)
true

> float(12)
12

> string(1.89)
"1.89"

> regex("w.r.d") == "world 🌎"
/w.r.d/

Copy link
Member

@chris-rock chris-rock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice addition. Thank you @arlimus

Basically:

```coffee
> int(1.23)
1

> bool(1)
true

> float(12)
12

> string(1.89)
"1.89"

> regex("w.r.d") == "world 🌎"
/w.r.d/
```

Signed-off-by: Dominik Richter <[email protected]>
Copy link
Contributor

github-actions bot commented Mar 2, 2024

Test Results

2β€ˆ829 tests  Β±0   2β€ˆ828 βœ… Β±0   1m 27s ⏱️ +12s
β€‡β€ˆ186 suites Β±0β€‚β€ƒβ€ƒβ€‡β€ˆβ€‡β€‡1 πŸ’€ Β±0 
β€‡β€ˆβ€‡β€‡5 files   Β±0β€‚β€ƒβ€ƒβ€‡β€ˆβ€‡β€‡0 ❌ Β±0 

Results for commit 4514f5b. ± Comparison against base commit 7dc1124.

This pull request removes 3 and adds 3 tests. Note that renamed tests count towards both.
go.mondoo.com/cnquery/v10/llx ‑ TestSuccess/2024-02-27_13:04:58.872036045_+0000_UTC_m=+0.010565752
go.mondoo.com/cnquery/v10/llx ‑ TestTruthy/2024-02-27_13:04:58.872036045_+0000_UTC_m=+0.010565752
go.mondoo.com/cnquery/v10/llx ‑ TestTruthy/2024-02-27_13:04:58.872036045_+0000_UTC_m=+0.010565752#01
go.mondoo.com/cnquery/v10/llx ‑ TestSuccess/2024-03-02_10:04:34.423581908_+0000_UTC_m=+0.021587731
go.mondoo.com/cnquery/v10/llx ‑ TestTruthy/2024-03-02_10:04:34.423581908_+0000_UTC_m=+0.021587731
go.mondoo.com/cnquery/v10/llx ‑ TestTruthy/2024-03-02_10:04:34.423581908_+0000_UTC_m=+0.021587731#01

♻️ This comment has been updated with latest results.

Regex is the biggest offender right now and we need a long-term solution for this

Signed-off-by: Dominik Richter <[email protected]>
@arlimus arlimus merged commit 49857bb into main Mar 2, 2024
14 checks passed
@arlimus arlimus deleted the dom/typemaps branch March 2, 2024 10:06
@github-actions github-actions bot locked and limited conversation to collaborators Mar 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants