mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-07 08:34:15 +01:00
744d63abac
* Fix parsing hexadecimal integers in conditions Remove the assumption that JSON contains only decimal integers and instead identify the base from the prefix of the data. `strconv.ParseInt` can identify the base of the integer based on its "prefix": - 0x -> hexadecimal - 0o -> octal - 0b -> binary - decimal otherwise. * core: add more tests for condiction.evaluate * fix isEqual parsing integers as strings * tests: extend conditions * Test if we can compare equality of hex in JSON * Test if we can have hex/oct/bin in conditions --------- Co-authored-by: TwiN <twin@linux.com> |
||
---|---|---|
.. | ||
ui | ||
condition_bench_test.go | ||
condition_result.go | ||
condition_test.go | ||
condition.go | ||
dns_test.go | ||
dns.go | ||
endpoint_status_test.go | ||
endpoint_status.go | ||
endpoint_test.go | ||
endpoint.go | ||
event_test.go | ||
event.go | ||
result_test.go | ||
result.go | ||
uptime.go |