1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-api-healthcheck synced 2026-06-17 04:50:02 +02:00

src/parse_request_test.go: adding test for debug api.

This commit is contained in:
Henrik Hautakoski 2022-10-03 16:15:47 +02:00
parent edb063722b
commit 0349999540
No known key found for this signature in database
GPG key ID: 608414D93E862CCD

View file

@ -105,3 +105,12 @@ func TestParseEosioContractWithBlockTime(t *testing.T) {
assert.NoError(t, err)
assert.Equal(t, expected, api)
}
func TestParseDebugApi(t *testing.T) {
expected := api.NewDebugApi("some_api_call")
api, err := ParseRequest("debug|some_api_call")
assert.NoError(t, err)
assert.Equal(t, expected, api)
}