MCPcopy Create free account
hub / github.com/OISF/libhtp / TEST

Function TEST

test/test_bstr.cpp:45–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43#include <htp/htp_private.h>
44
45TEST(BstrTest, Alloc) {
46 bstr *p1;
47 p1 = bstr_alloc(10);
48 EXPECT_EQ(10, bstr_size(p1));
49 EXPECT_EQ(0, bstr_len(p1));
50 bstr_free(p1);
51}
52
53TEST(BstrTest, ExpandLocal) {
54 bstr *p1;

Callers

nothing calls this directly

Calls 15

bstr_allocFunction · 0.85
bstr_freeFunction · 0.85
bstr_expandFunction · 0.85
bstr_dup_cFunction · 0.85
bstr_dupFunction · 0.85
bstr_dup_memFunction · 0.85
bstr_dup_exFunction · 0.85
bstr_dup_lowerFunction · 0.85
bstr_chrFunction · 0.85
bstr_cmpFunction · 0.85
bstr_cmp_nocaseFunction · 0.85
bstr_cmp_cFunction · 0.85

Tested by

no test coverage detected