• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

randombit / botan / 5111374265

29 May 2023 11:19AM UTC coverage: 92.227% (+0.5%) from 91.723%
5111374265

push

github

randombit
Next release will be 3.1.0. Update release notes

75588 of 81959 relevant lines covered (92.23%)

11886470.91 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

84.0
/src/lib/filters/basefilt.cpp
1
/*
2
* (C) 1999-2007 Jack Lloyd
3
*
4
* Botan is released under the Simplified BSD License (see license.txt)
5
*/
6

7
#include <botan/filters.h>
8

9
namespace Botan {
10

11
/*
12
* Chain Constructor
13
*/
14
Chain::Chain(Filter* f1, Filter* f2, Filter* f3, Filter* f4) {
2✔
15
   if(f1) {
2✔
16
      attach(f1);
2✔
17
      incr_owns();
2✔
18
   }
19
   if(f2) {
2✔
20
      attach(f2);
2✔
21
      incr_owns();
2✔
22
   }
23
   if(f3) {
2✔
24
      attach(f3);
×
25
      incr_owns();
×
26
   }
27
   if(f4) {
2✔
28
      attach(f4);
×
29
      incr_owns();
×
30
   }
31
}
2✔
32

33
/*
34
* Chain Constructor
35
*/
36
Chain::Chain(Filter* filters[], size_t count) {
1✔
37
   for(size_t j = 0; j != count; ++j)
3✔
38
      if(filters[j]) {
2✔
39
         attach(filters[j]);
2✔
40
         incr_owns();
2✔
41
      }
42
}
1✔
43

44
/*
45
* Fork Constructor
46
*/
47
Fork::Fork(Filter* f1, Filter* f2, Filter* f3, Filter* f4) {
2✔
48
   Filter* filters[4] = {f1, f2, f3, f4};
2✔
49
   set_next(filters, 4);
2✔
50
}
2✔
51

52
/*
53
* Fork Constructor
54
*/
55
Fork::Fork(Filter* filters[], size_t count) { set_next(filters, count); }
2✔
56

57
}  // namespace Botan
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc