Coverage Report

Created: 2026-06-15 06:37

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/dovecot/src/lib-otp/otp-parity.h
Line
Count
Source
1
#ifndef OTP_PARITY_H
2
#define OTP_PARITY_H
3
4
extern const unsigned char parity_table[256];
5
6
static inline unsigned int otp_parity(unsigned char *data)
7
10
{
8
10
  unsigned int i, parity = 0;
9
10
90
  for (i = 0; i < OTP_HASH_SIZE; i++)
11
80
    parity += parity_table[*data++];
12
13
10
  return parity & 3;
14
10
}
Unexecuted instantiation: sasl-server-mech-otp.c:otp_parity
Unexecuted instantiation: dsasl-client-mech-otp.c:otp_parity
Unexecuted instantiation: password-scheme.c:otp_parity
Unexecuted instantiation: password-scheme-otp.c:otp_parity
Unexecuted instantiation: otp-hash.c:otp_parity
otp-parse.c:otp_parity
Line
Count
Source
7
10
{
8
10
  unsigned int i, parity = 0;
9
10
90
  for (i = 0; i < OTP_HASH_SIZE; i++)
11
80
    parity += parity_table[*data++];
12
13
10
  return parity & 3;
14
10
}
Unexecuted instantiation: otp-dictionary.c:otp_parity
Unexecuted instantiation: otp-parity.c:otp_parity
15
16
#endif