mirror of
https://github.com/TwiN/gatus.git
synced 2024-12-14 11:58:04 +00: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.go | ||
condition_bench_test.go | ||
condition_result.go | ||
condition_test.go | ||
dns.go | ||
dns_test.go | ||
endpoint.go | ||
endpoint_status.go | ||
endpoint_status_test.go | ||
endpoint_test.go | ||
event.go | ||
event_test.go | ||
result.go | ||
result_test.go | ||
uptime.go |