testURL.cc
Go to the documentation of this file.
108 CPPUNIT_ASSERT_EQUAL(testCase.second, AnyP::Uri::Encode(testCase.first, CharacterSet::RFC3986_UNRESERVED()));
128 CPPUNIT_ASSERT_THROW(AnyP::Uri::Decode(ToSBuf("word", invalidEncoding, "word")), TextException);
CPPUNIT_TEST_SUITE_REGISTRATION(TestUri)
implements test program's main() function while enabling customization
Definition: unitTestMain.h:25
Definition: UriScheme.h:31
CPPUNIT_TEST_SUITE_END()
CPPUNIT_TEST(testConstructScheme)
CPPUNIT_TEST_SUITE(TestUri)
Definition: testURL.cc:26
SBuf ToSBuf(Args &&... args)
slowly stream-prints all arguments into a freshly allocated SBuf
Definition: Stream.h:63
static const CharacterSet & RFC3986_UNRESERVED()
allowed URI characters that do not have a reserved purpose, RFC 3986
Definition: CharacterSet.cc:164
static SBuf Encode(const SBuf &, const CharacterSet &expected)
Definition: Uri.cc:57
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products