testIoManip.cc
Go to the documentation of this file.
58 CPPUNIT_ASSERT_EQUAL(std::string("7fffffffffffffff"), toStdString(asHex(std::numeric_limits<int64_t>::max())));
59 CPPUNIT_ASSERT_EQUAL(std::string("ffffffffffffffff"), toStdString(asHex(std::numeric_limits<uint64_t>::max())));
66 CPPUNIT_ASSERT_EQUAL(std::string("80000000"), toStdString(asHex(std::numeric_limits<int32_t>::min())));
static void resetStream(std::ostringstream &dirty)
resets the given stream, including any formatting
Definition: testIoManip.cc:34
static std::string toStdString(const AsHex< Integer > &manipulator)
returns the result of printing the given manipulator
Definition: testIoManip.cc:43
implements test program's main() function while enabling customization
Definition: unitTestMain.h:25
Definition: IoManip.h:259
CPPUNIT_TEST(testAsHex)
AsHex< Integer > asHex(const Integer n)
a helper to ease AsHex object creation
Definition: IoManip.h:169
CPPUNIT_TEST_SUITE_REGISTRATION(TestIoManip)
CPPUNIT_TEST_SUITE(TestIoManip)
CPPUNIT_TEST_SUITE_END()
Definition: IoManip.h:111
Definition: testIoManip.cc:18
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
Miscellaneous
- Developer Resources
- Related Writings
- Related Software:
- Squid Artwork
Web Site Translations
Mirrors
- Website:
- ... full list