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

Function TEST

src/socket.cpp:3092–3094  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3090#include "gtest/gtest.h"
3091
3092TEST(get_trimmed_call_id, noslashes) {
3093 EXPECT_STREQ("abc", get_trimmed_call_id("OPTIONS..\r\nBla: X\r\nCall-ID: abc\r\nCall-ID: def\r\n\r\n"));
3094}
3095
3096TEST(get_trimmed_call_id, withslashes) {
3097 EXPECT_STREQ("abc2", get_trimmed_call_id("OPTIONS..\r\nBla: X\r\nCall-ID: ///abc2\r\nCall-ID: def\r\n\r\n"));

Callers

nothing calls this directly

Calls 1

get_trimmed_call_idFunction · 0.85

Tested by

no test coverage detected