randombit / botan

@@ -48,7 +48,8 @@
Loading
48 48
   {
49 49
   public:
50 50
      TLS_Message_Parsing_Test()
51 -
         : Text_Based_Test("tls", "Buffer,Protocol,Ciphersuite,AdditionalData,Name,Exception") {}
51 +
         : Text_Based_Test("tls", "Buffer,Exception",
52 +
            "Protocol,AdditionalData,Ciphersuite,Name") {}
52 53
53 54
      Test::Result run_one_test(const std::string& algo, const VarMap& vars) override
54 55
         {

@@ -1063,6 +1063,13 @@
Loading
1063 1063
         {
1064 1064
         try
1065 1065
            {
1066 +
            for(auto& req_key: m_required_keys)
1067 +
               {
1068 +
               if(!vars.has_key(req_key))
1069 +
                  results.push_back(Test::Result::Failure(header_or_name,
1070 +
                                                          test_id + " missing required key " + req_key));
1071 +
               }
1072 +
1066 1073
            if(skip_this_test(header, vars))
1067 1074
               continue;
1068 1075

@@ -20,7 +20,7 @@
Loading
20 20
class AEAD_Tests final : public Text_Based_Test
21 21
   {
22 22
   public:
23 -
      AEAD_Tests() : Text_Based_Test("aead", "Key,Nonce,In,Out", "AD") {}
23 +
      AEAD_Tests() : Text_Based_Test("aead", "Key,In,Out", "Nonce,AD") {}
24 24
25 25
      Test::Result test_enc(const std::vector<uint8_t>& key, const std::vector<uint8_t>& nonce,
26 26
                            const std::vector<uint8_t>& input, const std::vector<uint8_t>& expected,

@@ -27,7 +27,7 @@
Loading
27 27
      ECDSA_Verification_Tests() : PK_Signature_Verification_Test(
28 28
            "ECDSA",
29 29
            "pubkey/ecdsa_verify.vec",
30 -
            "Group,Px,Py,Hash,Msg,Signature",
30 +
            "Group,Px,Py,Msg,Signature",
31 31
            "Valid") {}
32 32
33 33
      bool clear_between_callbacks() const override

@@ -24,7 +24,7 @@
Loading
24 24
         : PK_Key_Agreement_Test(
25 25
              "ECDH",
26 26
              "pubkey/ecdh.vec",
27 -
              "Group,Secret,CounterKey,K",
27 +
              "Secret,CounterKey,K",
28 28
              "KDF") {}
29 29
30 30
      std::string default_kdf(const VarMap&) const override

@@ -25,8 +25,8 @@
Loading
25 25
         : PK_Key_Agreement_Test(
26 26
              "Diffie-Hellman",
27 27
              "pubkey/dh.vec",
28 -
              "P,G,X,Y,Msg,OutLen,K",
29 -
              "Q,KDF") {}
28 +
              "P,G,X,Y,K",
29 +
              "Q,KDF,OutLen") {}
30 30
31 31
      std::string default_kdf(const VarMap&) const override
32 32
         {

@@ -20,7 +20,7 @@
Loading
20 20
class SIV_Tests final : public Text_Based_Test
21 21
   {
22 22
   public:
23 -
      SIV_Tests() : Text_Based_Test("siv_ad.vec", "Key,Nonce,ADs,In,Out") {}
23 +
      SIV_Tests() : Text_Based_Test("siv_ad.vec", "Key,In,Out", "Nonce,ADs") {}
24 24
25 25
      Test::Result run_one_test(const std::string& algo, const VarMap& vars) override
26 26
         {

@@ -24,7 +24,7 @@
Loading
24 24
         : PK_Encryption_Decryption_Test(
25 25
              "ElGamal",
26 26
              "pubkey/elgamal_encrypt.vec",
27 -
              "Group,Padding,Secret,Nonce,Msg,Ciphertext") {}
27 +
              "Group,Secret,Nonce,Msg,Ciphertext", "Padding") {}
28 28
29 29
      std::unique_ptr<Botan::Private_Key> load_private_key(const VarMap& vars) override
30 30
         {

@@ -23,7 +23,7 @@
Loading
23 23
class KDF_KAT_Tests final : public Text_Based_Test
24 24
   {
25 25
   public:
26 -
      KDF_KAT_Tests() : Text_Based_Test("kdf", "Salt,Secret,Label,Output", "IKM,XTS") {}
26 +
      KDF_KAT_Tests() : Text_Based_Test("kdf", "Secret,Output", "Salt,Label,IKM,XTS") {}
27 27
28 28
      Test::Result run_one_test(const std::string& kdf_name, const VarMap& vars) override
29 29
         {

@@ -25,7 +25,7 @@
Loading
25 25
      DLIES_KAT_Tests()
26 26
         : Text_Based_Test(
27 27
              "pubkey/dlies.vec",
28 -
              "Kdf,Mac,MacKeyLen,IV,Group,X1,X2,Msg,Ciphertext") {}
28 +
              "Kdf,Mac,MacKeyLen,Group,X1,X2,Msg,Ciphertext", "IV") {}
29 29
30 30
      Test::Result run_one_test(const std::string& cipher_algo, const VarMap& vars) override
31 31
         {

@@ -77,7 +77,7 @@
Loading
77 77
         : PK_KEM_Test(
78 78
              "RSA",
79 79
              "pubkey/rsa_kem.vec",
80 -
              "E,P,Q,R,C0,KDF,OutLen,K") {}
80 +
              "E,P,Q,R,C0,KDF,K") {}
81 81
82 82
      std::unique_ptr<Botan::Private_Key> load_private_key(const VarMap& vars) override
83 83
         {
Files Coverage
src 92.31%
Project Totals (567 files) 92.31%
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