MCPcopy Create free account
hub / github.com/SIPp/sipp / TEST

Function TEST

src/sip_parser.cpp:553–563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

551#include "gtest/gtest.h"
552
553TEST(Parser, internal_find_header) {
554 char data[] = "OPTIONS sip:server SIP/2.0\r\n"
555"Took: abc1\r\n"
556"To k: abc2\r\n"
557"To\t :\r\n abc3\r\n"
558"From: def\r\n"
559"\r\n";
560 const char *eq = strstr(data, "To\t :");
561 EXPECT_STREQ(eq, internal_find_header(data, "To", "t", false));
562 EXPECT_STREQ(eq + 8, internal_find_header(data, "To", "t", true));
563}
564
565TEST(Parser, internal_find_header_no_callid_missing_cr_in_to) {
566 char data[4096];

Callers

nothing calls this directly

Calls 5

internal_find_headerFunction · 0.85
get_headerFunction · 0.85
get_peer_tagFunction · 0.85
get_call_idFunction · 0.85

Tested by

no test coverage detected