From ca825937bf1df95370dae49c231ce6ed2c1a64dd Mon Sep 17 00:00:00 2001 From: Jorijn van der Graaf Date: Sun, 22 Nov 2026 17:35:11 +0100 Subject: [PATCH] tests: the Sip suite's header names its sections, and its reginfo fixture takes a documentation address and the suites' instance id MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The suite's header comment named five of its sections — header access, the status line, the granted lifetime, the caller's identity and the frame buffer — and left out six: ViaResponsePort, DatagramMessage, RetryAfter and RefusalSummary, ResponseOf, RegInfoContactState, HeaderUri and Body. Its reg-event fixture had a contact at [2a03:db8::1], outside the documentation prefix 2001:db8::/32, and an instance id built on a real phone model's type allocation code. The header now names every section; the fixture has [2001:db8::1] and the instance id that tests/Aka and tests/Messages use, 35999999-000000-1. No check changes. --- tests/Sip/main.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/tests/Sip/main.cpp b/tests/Sip/main.cpp index a51d222..2844f07 100644 --- a/tests/Sip/main.cpp +++ b/tests/Sip/main.cpp @@ -2,9 +2,13 @@ // SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts® // Imsd:Sip unit tests — header access, status-line parsing, granted-expires -// extraction, caller-identity extraction, and the TCP frame buffer (split -// delivery, keepalive pongs, pipelined messages). These pin the module's -// edge-case behavior; see the module header before "fixing" one. +// extraction, caller-identity extraction, the port a Via names for the +// response (ViaResponsePort), the two framers — the TCP frame buffer (split +// delivery, keepalive pongs, pipelined messages) and a datagram's +// (DatagramMessage) —, a refused final's Retry-After and summary (RetryAfter, +// RefusalSummary), transaction matching (ResponseOf), our binding in a +// reg-event document (RegInfoContactState), and HeaderUri and Body. These pin +// the module's edge-case behavior; see the module header before "fixing" one. import std; import Imsd; @@ -257,8 +261,8 @@ int main() { auto contact = [](std::string_view id, std::string_view state, std::string_view extra, std::string_view user) { return std::format( "\t\t\n" - "\t\t\tsip:{}@[2a03:db8::1]:45062\n" - "\t\t\t"<urn:gsma:imei:35901961-000000-0>" \n" + "\t\t\tsip:{}@[2001:db8::1]:45062\n" + "\t\t\t"<urn:gsma:imei:35999999-000000-1>" \n" "\t\t\n", id, state, extra, user); }; auto reginfo = [](std::string_view contacts) {