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

randombit / botan / 5079590438

25 May 2023 12:28PM UTC coverage: 92.228% (+0.5%) from 91.723%
5079590438

Pull #3502

github

Pull Request #3502: Apply clang-format to the codebase

75589 of 81959 relevant lines covered (92.23%)

12139530.51 hits per line

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

83.33
/src/lib/base/buf_comp.cpp
1
/*
2
* (C) 2019 Jack Lloyd
3
*
4
* Botan is released under the Simplified BSD License (see license.txt)
5
*/
6

7
#include <botan/buf_comp.h>
8

9
#include <botan/internal/loadstor.h>
10

11
namespace Botan {
12

13
void Buffered_Computation::update_be(uint16_t val) {
56✔
14
   uint8_t inb[sizeof(val)];
56✔
15
   store_be(val, inb);
56✔
16
   add_data(inb, sizeof(inb));
56✔
17
}
56✔
18

19
void Buffered_Computation::update_be(uint32_t val) {
137,617✔
20
   uint8_t inb[sizeof(val)];
137,617✔
21
   store_be(val, inb);
137,617✔
22
   add_data(inb, sizeof(inb));
137,617✔
23
}
137,617✔
24

25
void Buffered_Computation::update_be(uint64_t val) {
7,827✔
26
   uint8_t inb[sizeof(val)];
7,827✔
27
   store_be(val, inb);
7,827✔
28
   add_data(inb, sizeof(inb));
7,827✔
29
}
7,827✔
30

31
void Buffered_Computation::update_le(uint16_t val) {
×
32
   uint8_t inb[sizeof(val)];
×
33
   store_le(val, inb);
×
34
   add_data(inb, sizeof(inb));
×
35
}
×
36

37
void Buffered_Computation::update_le(uint32_t val) {
32,148✔
38
   uint8_t inb[sizeof(val)];
32,148✔
39
   store_le(val, inb);
32,148✔
40
   add_data(inb, sizeof(inb));
32,148✔
41
}
32,148✔
42

43
void Buffered_Computation::update_le(uint64_t val) {
142,848✔
44
   uint8_t inb[sizeof(val)];
142,848✔
45
   store_le(val, inb);
142,848✔
46
   add_data(inb, sizeof(inb));
142,848✔
47
}
142,848✔
48

49
}
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

© 2025 Coveralls, Inc