MCPcopy Create free account
hub / github.com/apache/trafficserver / checkHttpTxnServerSsnTransactionCount

Function checkHttpTxnServerSsnTransactionCount

src/api/InkAPITest.cc:3441–3454  ·  view source on GitHub ↗

This func is called by us from mytest_handler to test TSHttpTxnServerSsnTransactionCount

Source from the content-addressed store, hash-verified

3439
3440// This func is called by us from mytest_handler to test TSHttpTxnServerSsnTransactionCount
3441static int
3442checkHttpTxnServerSsnTransactionCount(SocketTest *test, void *data)
3443{
3444 TSHttpTxn txnp = static_cast<TSHttpTxn>(data);
3445
3446 int count = TSHttpTxnServerSsnTransactionCount(txnp);
3447 if (count < 0) {
3448 SDK_RPRINT(test->regtest, "TSHttpTxnServerSsnTransactionCount", "TestCase1", TC_FAIL, "invalid count value '%d'", count);
3449 } else {
3450 SDK_RPRINT(test->regtest, "TSHttpTxnServerSsnTransactionCount", "TestCase1", TC_PASS, "ok - count='%d'", count);
3451 }
3452
3453 return count;
3454}
3455
3456// This func is called both by us when scheduling EVENT_IMMEDIATE
3457// And by HTTP SM for registered hooks

Callers 1

mytest_handlerFunction · 0.85

Calls 2

SDK_RPRINTFunction · 0.85

Tested by

no test coverage detected