Lines Matching refs:Detail

1466     namespace Detail {
1475 } // namespace Detail
1480 virtual Detail::EnumInfo const& registerEnum( StringRef enumName, StringRef allEnums, std::vector<int> const& values ) = 0;
1483 Detail::EnumInfo const& registerEnum( StringRef enumName, StringRef allEnums, std::initializer_list<E> values ) {
1553 namespace Detail {
1584 return Detail::unprintableString;
1612 } // namespace Detail
1619 typename std::enable_if<::Catch::Detail::IsStreamInsertable<Fake>::value, std::string>::type
1630 typename std::enable_if<!::Catch::Detail::IsStreamInsertable<Fake>::value, std::string>::type
1633 return Detail::convertUnstreamable(value);
1640 namespace Detail {
1643 // Should be preferably called fully qualified, like ::Catch::Detail::stringify
1651 return ::Catch::Detail::stringify(static_cast<typename std::underlying_type<E>::type>(e));
1661 } // namespace Detail
1714 return ::Catch::Detail::stringify(std::string{ str });
1720 return ::Catch::Detail::stringify(std::string{ reinterpret_cast<char const *>(str) });
1726 return ::Catch::Detail::stringify(std::string{ reinterpret_cast<char const *>(str) });
1801 return ::Catch::Detail::rawMemoryToString(p);
1812 return ::Catch::Detail::rawMemoryToString(p);
1823 return ::Catch::Detail::clrReferenceToString(ref);
1828 namespace Detail {
1834 rss << ::Catch::Detail::stringify(*first);
1836 rss << ", " << ::Catch::Detail::stringify(*first);
1855 return ::Catch::Detail::stringify([nsObject description]);
1859 namespace Detail {
1864 } // namespace Detail
1890 << ::Catch::Detail::stringify(pair.first)
1892 << ::Catch::Detail::stringify(pair.second)
1908 rss << ::Catch::Detail::stringify(*optional);
1922 namespace Detail {
1931 << ::Catch::Detail::stringify(std::get<N>(tuple));
1951 Detail::TupleElementPrinter<std::tuple<Types...>>::print(tuple, rss.get());
1977 return ::Catch::Detail::stringify(value);
2020 return ::Catch::Detail::rangeToString( begin( range ), end( range ) );
2034 rss << ::Catch::Detail::stringify( b );
2041 struct StringMaker<R, typename std::enable_if<is_range<R>::value && !::Catch::Detail::IsStreamInsertable<R>::value>::type> {
2142 return ::Catch::Detail::stringify(time_point.time_since_epoch()) + " since epoch";
2232 ( os, Catch::Detail::stringify( m_lhs ), m_op, Catch::Detail::stringify( m_rhs ) );
2305 os << Catch::Detail::stringify( m_lhs );
2665 captureValue( index, Catch::Detail::stringify( value ) );
2670 captureValue( index, Catch::Detail::stringify(value) );
3077 namespace Detail {
3178 } // end namespace Detail
3181 Detail::Approx operator "" _a(long double val);
3182 Detail::Approx operator "" _a(unsigned long long val);
3186 struct StringMaker<Catch::Detail::Approx> {
3187 static std::string convert(Catch::Detail::Approx const& value);
3491 namespace Detail {
3503 m_description(Detail::finalizeDescription(descr))
3622 return "Contains: " + ::Catch::Detail::stringify( m_comparator );
3652 return "Contains: " + ::Catch::Detail::stringify( m_comparator );
3676 return "Equals: " + ::Catch::Detail::stringify( m_comparator );
3695 return "is approx: " + ::Catch::Detail::stringify( m_comparator );
3714 mutable Catch::Detail::Approx approx = Catch::Detail::Approx::custom();
3728 return "UnorderedEquals: " + ::Catch::Detail::stringify(m_target);
3785 os << Catch::Detail::stringify( m_arg ) << ' ';
3786 if( matcherAsString == Detail::unprintableString )
4895 namespace Detail{
4927 std::string name = Detail::getAnnotation( cls, "Name", testCaseName );
4928 std::string desc = Detail::getAnnotation( cls, "Description", testCaseName );
4970 return "equals string: " + Catch::Detail::stringify( m_substr );
4983 return "contains string: " + Catch::Detail::stringify( m_substr );
4996 return "starts with: " + Catch::Detail::stringify( m_substr );
5008 return "ends with: " + Catch::Detail::stringify( m_substr );
6501 namespace Detail {
6503 } // namespace Detail
6515 namespace Detail {
6519 } // namespace Detail
6551 namespace Detail {
6583 } // namespace Detail
6586 Detail::CompleteType_t<FunctionReturnType<Fun>> user_code(Fun&& fun) {
6588 return Detail::complete_invoke(std::forward<Fun>(fun));
6591 CATCH_RUNTIME_ERROR(Detail::benchmarkErrorMsg);
6600 namespace Detail {
6616 } // namespace Detail
6625 Chronometer(Detail::ChronometerConcept& meter, int k)
6637 Detail::optimizer_barrier();
6641 Detail::optimizer_barrier();
6644 Detail::ChronometerConcept* impl;
6695 namespace Detail {
6771 } // namespace Detail
6786 namespace Detail {
6800 } // namespace Detail
6832 using TimingOf = Timing<ClockDuration<Clock>, Detail::CompleteType_t<FunctionReturnType<Func, Args...>>>;
6841 namespace Detail {
6845 auto&& r = Detail::complete_invoke(fun, std::forward<Args>(args)...);
6850 } // namespace Detail
6860 namespace Detail {
6863 return Detail::measure<Clock>(fun, iters);
6867 Detail::ChronometerModel<Clock> meter;
6868 auto&& result = Detail::complete_invoke(fun, Chronometer(meter, iters));
6895 } // namespace Detail
6909 Detail::BenchmarkFunction benchmark;
6921 Detail::run_for_at_least<Clock>(std::chrono::duration_cast<ClockDuration<Clock>>(warmup_time), warmup_iterations, Detail::repeat(now<Clock>{}));
6926 Detail::ChronometerModel<Clock> model;
6962 namespace Detail {
7087 } // namespace Detail
7100 namespace Detail {
7146 return Detail::measure<Clock>([k] {
7175 auto iters = Detail::warmup<Clock>();
7176 auto resolution = Detail::estimate_clock_resolution<Clock>(iters);
7177 auto cost = Detail::estimate_clock_cost<Clock>(resolution.mean);
7182 } // namespace Detail
7236 namespace Detail {
7244 auto analysis = Catch::Benchmark::Detail::analyse_samples(cfg.benchmarkConfidenceInterval(), cfg.benchmarkResamples(), samples.begin(), samples.end());
7245 auto outliers = Catch::Benchmark::Detail::classify_outliers(samples.begin(), samples.end());
7286 } // namespace Detail
7309 auto min_time = env.clock_resolution.mean * Detail::minimum_ticks;
7311 auto&& test = Detail::run_for_at_least<Clock>(std::chrono::duration_cast<ClockDuration<Clock>>(run_time), 1, fun);
7313 return { new_iters, test.elapsed / test.iterations * new_iters * cfg.benchmarkSamples(), fun, std::chrono::duration_cast<FloatDuration<Clock>>(cfg.benchmarkWarmupTime()), Detail::warmup_iterations };
7320 auto env = Detail::measure_environment<Clock>();
7344 auto analysis = Detail::analyse(*cfg, env, samples.begin(), samples.end());
7349 if (translateActiveException() != Detail::benchmarkErrorMsg) // benchmark errors have been reported, otherwise rethrow.
7356 typename std::enable_if<!Detail::is_related<Fun, Benchmark>::value, int>::type = 0>
7358 fun = Detail::BenchmarkFunction(func);
7368 Detail::BenchmarkFunction fun;
7395 namespace Detail {
7448 using storage_for = Detail::ObjectStorage<T, true>;
7451 using destructable_object = Detail::ObjectStorage<T, false>;
7740 auto m = Catch::Benchmark::Detail::mean(first, last);
7752 namespace Detail {
7821 auto mean = &Detail::mean<std::vector<double>::iterator>;
7851 double outlier_variance = Detail::outlier_variance(mean_estimate, stddev_estimate, n);
7855 } // namespace Detail
7877 namespace Detail {
7898 rss << "Approx( " << ::Catch::Detail::stringify( m_value ) << " )";
7923 } // end namespace Detail
7926 Detail::Approx operator "" _a(long double val) {
7927 return Detail::Approx(val);
7929 Detail::Approx operator "" _a(unsigned long long val) {
7930 return Detail::Approx(val);
7934 std::string StringMaker<Catch::Detail::Approx>::convert(Catch::Detail::Approx const& value) {
10564 namespace Detail {
10577 } // Detail
10590 namespace Detail {
10630 const auto valueNames = Catch::Detail::parseEnums( allValueNames );
10644 } // Detail
10702 return Catch::Detail::stringify( [exception description] );
11275 Catch::cout() << Column( Catch::Detail::stringify( testCaseInfo.lineInfo ) ).indent(4) << std::endl;
11584 return "is within " + ::Catch::Detail::stringify(m_margin) + " of " + ::Catch::Detail::stringify(m_target);
11697 std::string Catch::Matchers::Generic::Detail::finalizeDescription(const std::string& desc) {
11782 return "matches " + ::Catch::Detail::stringify(m_regex) + ((m_caseSensitivity == CaseSensitive::Choice::Yes)? " case sensitively" : " case insensitively");
12509 Detail::EnumValuesRegistry m_enumValuesRegistry;
13648 namespace Detail { namespace {
13747 return new Detail::CoutStream();
13750 return new Detail::DebugOutStream();
13755 return new Detail::FileStream( filename );
15023 namespace Detail {
15111 return ::Catch::Detail::stringify(std::string{ str });
15117 return ::Catch::Detail::stringify(std::string{ str });
15124 return ::Catch::Detail::stringify(std::string{ str });
15137 return ::Catch::Detail::stringify(s);
15148 return ::Catch::Detail::stringify(std::wstring{ str });
15155 return ::Catch::Detail::stringify(std::wstring{ str });
15165 return ::Catch::Detail::stringify(std::to_integer<unsigned long long>(value));
15170 return ::Catch::Detail::stringify(static_cast<long long>(value));
15173 return ::Catch::Detail::stringify(static_cast<long long>(value));
15178 if (value > Detail::hexThreshold) {
15185 return ::Catch::Detail::stringify(static_cast<unsigned long long>(value));
15188 return ::Catch::Detail::stringify(static_cast<unsigned long long>(value));
15193 if (value > Detail::hexThreshold) {
15213 return ::Catch::Detail::stringify(static_cast<unsigned int>(value));
15221 return ::Catch::Detail::stringify(static_cast<signed char>(c));
15224 return ::Catch::Detail::stringify(static_cast<char>(c));
17772 using Catch::Detail::Approx;
17949 using Catch::Detail::Approx;