Showing 1 of 1 files from the diff.

@@ -265,6 +265,31 @@
Loading
265 265
   return result;
266 266
   }
267 267
268 +
Test::Result test_asn1_tag_underlying_type()
269 +
   {
270 +
   Test::Result result("ASN.1 class and type underlying type");
271 +
272 +
   if constexpr(std::is_same_v<std::underlying_type_t<Botan::ASN1_Class>,
273 +
                               std::underlying_type_t<Botan::ASN1_Type>>)
274 +
   {
275 +
      if constexpr(!std::is_same_v<std::underlying_type_t<Botan::ASN1_Class>,
276 +
                                   std::invoke_result_t<decltype(&Botan::BER_Object::tagging), Botan::BER_Object>>)
277 +
      {
278 +
         result.test_failure("Return type of BER_Object::tagging() is different than the underlying type of ASN1_Class");
279 +
      }
280 +
      else
281 +
      {
282 +
         result.test_success("Same types");
283 +
      }
284 +
   }
285 +
   else
286 +
   {
287 +
      result.test_failure("ASN1_Class and ASN1_Type have different underlying types");
288 +
   }
289 +
290 +
   return result;
291 +
   }
292 +
268 293
}
269 294
270 295
class ASN1_Tests final : public Test
@@ -282,6 +307,7 @@
Loading
282 307
         results.push_back(test_asn1_ucs4_parsing());
283 308
         results.push_back(test_asn1_ascii_encoding());
284 309
         results.push_back(test_asn1_utf8_encoding());
310 +
         results.push_back(test_asn1_tag_underlying_type());
285 311
286 312
         return results;
287 313
         }
Files Coverage
src 92.42%
Project Totals (565 files) 92.42%
1
---
2

3
# Documentation
4
# https://github.com/codecov/support/wiki/Codecov-Yaml#full-yaml
5
#
6
# Validate this file
7
# curl --data-binary @codecov.yml https://codecov.io/validate
8

9
coverage:
10
  status:
11
    project:
12
      default:
13
        # Random seeds in tests lead to a +/-0.05% coverage span even for PRs
14
        # that do not change source code
15
        threshold: 0.05
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading