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

Class SourceLineInfo

lib/catch2/catch.hpp:502–521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

500 };
501
502 struct SourceLineInfo {
503
504 SourceLineInfo() = delete;
505 SourceLineInfo( char const* _file, std::size_t _line ) noexcept
506 : file( _file ),
507 line( _line )
508 {}
509
510 SourceLineInfo( SourceLineInfo const& other ) = default;
511 SourceLineInfo& operator = ( SourceLineInfo const& ) = default;
512 SourceLineInfo( SourceLineInfo&& ) noexcept = default;
513 SourceLineInfo& operator = ( SourceLineInfo&& ) noexcept = default;
514
515 bool empty() const noexcept { return file[0] == '\0'; }
516 bool operator == ( SourceLineInfo const& other ) const noexcept;
517 bool operator < ( SourceLineInfo const& other ) const noexcept;
518
519 char const* file;
520 std::size_t line;
521 };
522
523 std::ostream& operator << ( std::ostream& os, SourceLineInfo const& info );
524

Callers 2

registerTestMethodsFunction · 0.85
RunContextMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected