From a1a09240552e1661d62f4b0cf7e2e48adebf86ab Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Sat, 2 Sep 2023 15:58:11 +0100 Subject: [PATCH] Testing: Increase coverage --- tests/bufr_coordinate_descriptors.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/bufr_coordinate_descriptors.cc b/tests/bufr_coordinate_descriptors.cc index d743024a2..f005ab5a5 100644 --- a/tests/bufr_coordinate_descriptors.cc +++ b/tests/bufr_coordinate_descriptors.cc @@ -34,6 +34,7 @@ int main(int argc, char* argv[]) char* filename = NULL; FILE* fin = NULL; int is_coord = 0; + int is_header = 0; assert (argc == 2); filename = argv[1]; @@ -78,6 +79,10 @@ int main(int argc, char* argv[]) is_coord = codes_bufr_key_is_coordinate(h, "nosuchkey", &err); assert(err == CODES_NOT_FOUND); + assert(is_coord == 0); + is_header = codes_bufr_key_is_header(h, "nosuchkey", &err); + assert(err == CODES_NOT_FOUND); + assert(is_header == 0); codes_bufr_keys_iterator_delete(kiter); codes_handle_delete(h);