Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/bio/bss_null.c |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | - | |||||||
2 | - | |||||||
3 | static int null_write(BIO *h, const char *buf, int num); | - | ||||||
4 | static int null_read(BIO *h, char *buf, int size); | - | ||||||
5 | static int null_puts(BIO *h, const char *str); | - | ||||||
6 | static int null_gets(BIO *h, char *str, int size); | - | ||||||
7 | static long null_ctrl(BIO *h, int cmd, long arg1, void *arg2); | - | ||||||
8 | static const BIO_METHOD null_method = { | - | ||||||
9 | ( 6|0x0400), | - | ||||||
10 | "NULL", | - | ||||||
11 | - | |||||||
12 | bwrite_conv, | - | ||||||
13 | null_write, | - | ||||||
14 | - | |||||||
15 | bread_conv, | - | ||||||
16 | null_read, | - | ||||||
17 | null_puts, | - | ||||||
18 | null_gets, | - | ||||||
19 | null_ctrl, | - | ||||||
20 | - | |||||||
21 | ((void *)0) | - | ||||||
22 | , | - | ||||||
23 | - | |||||||
24 | ((void *)0) | - | ||||||
25 | , | - | ||||||
26 | - | |||||||
27 | ((void *)0) | - | ||||||
28 | , | - | ||||||
29 | }; | - | ||||||
30 | - | |||||||
31 | const BIO_METHOD *BIO_s_null(void) | - | ||||||
32 | { | - | ||||||
33 | return executed 15602 times by 1 test: &null_method;return &null_method; Executed by:
executed 15602 times by 1 test: return &null_method; Executed by:
| 15602 | ||||||
34 | } | - | ||||||
35 | - | |||||||
36 | static int null_read(BIO *b, char *out, int outl) | - | ||||||
37 | { | - | ||||||
38 | return never executed: 0;return 0; never executed: return 0; | 0 | ||||||
39 | } | - | ||||||
40 | - | |||||||
41 | static int null_write(BIO *b, const char *in, int inl) | - | ||||||
42 | { | - | ||||||
43 | return executed 12692627 times by 1 test: inl;return inl; Executed by:
executed 12692627 times by 1 test: return inl; Executed by:
| 12692627 | ||||||
44 | } | - | ||||||
45 | - | |||||||
46 | static long null_ctrl(BIO *b, int cmd, long num, void *ptr) | - | ||||||
47 | { | - | ||||||
48 | long ret = 1; | - | ||||||
49 | - | |||||||
50 | switch (cmd) { | - | ||||||
51 | case never executed: 1:case 1: never executed: case 1: | 0 | ||||||
52 | case never executed: 2:case 2: never executed: case 2: | 0 | ||||||
53 | case never executed: 4:case 4: never executed: case 4: | 0 | ||||||
54 | case never executed: 9:case 9: never executed: case 9: | 0 | ||||||
55 | case executed 14 times by 1 test: 11:case 11: Executed by:
executed 14 times by 1 test: case 11: Executed by:
| 14 | ||||||
56 | case never executed: 12:case 12: never executed: case 12: | 0 | ||||||
57 | ret = 1; | - | ||||||
58 | break; executed 14 times by 1 test: break; Executed by:
| 14 | ||||||
59 | case never executed: 8:case 8: never executed: case 8: | 0 | ||||||
60 | case never executed: 3:case 3: never executed: case 3: | 0 | ||||||
61 | case never executed: 5:case 5: never executed: case 5: | 0 | ||||||
62 | case never executed: 10:case 10: never executed: case 10: | 0 | ||||||
63 | case never executed: 13:case 13: never executed: case 13: | 0 | ||||||
64 | default executed 21 times by 1 test: :default: Executed by:
executed 21 times by 1 test: default: Executed by:
| 21 | ||||||
65 | ret = 0; | - | ||||||
66 | break; executed 21 times by 1 test: break; Executed by:
| 21 | ||||||
67 | } | - | ||||||
68 | return executed 35 times by 1 test: ret;return ret; Executed by:
executed 35 times by 1 test: return ret; Executed by:
| 35 | ||||||
69 | } | - | ||||||
70 | - | |||||||
71 | static int null_gets(BIO *bp, char *buf, int size) | - | ||||||
72 | { | - | ||||||
73 | return never executed: 0;return 0; never executed: return 0; | 0 | ||||||
74 | } | - | ||||||
75 | - | |||||||
76 | static int null_puts(BIO *bp, const char *str) | - | ||||||
77 | { | - | ||||||
78 | if (str ==
| 0-5878878 | ||||||
79 | ((void *)0)
| 0-5878878 | ||||||
80 | ) | - | ||||||
81 | return never executed: 0;return 0; never executed: return 0; | 0 | ||||||
82 | return executed 5878878 times by 1 test: strlen(str);return strlen(str); Executed by:
executed 5878878 times by 1 test: return strlen(str); Executed by:
| 5878878 | ||||||
83 | } | - | ||||||
Switch to Source code | Preprocessed file |