MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / SourceLineInfo

Class SourceLineInfo

test/expected/catch.hpp:482–501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480 };
481
482 struct SourceLineInfo {
483
484 SourceLineInfo() = delete;
485 SourceLineInfo( char const* _file, std::size_t _line ) noexcept
486 : file( _file ),
487 line( _line )
488 {}
489
490 SourceLineInfo( SourceLineInfo const& other ) = default;
491 SourceLineInfo& operator = ( SourceLineInfo const& ) = default;
492 SourceLineInfo( SourceLineInfo&& ) noexcept = default;
493 SourceLineInfo& operator = ( SourceLineInfo&& ) noexcept = default;
494
495 bool empty() const noexcept { return file[0] == '\0'; }
496 bool operator == ( SourceLineInfo const& other ) const noexcept;
497 bool operator < ( SourceLineInfo const& other ) const noexcept;
498
499 char const* file;
500 std::size_t line;
501 };
502
503 std::ostream& operator << ( std::ostream& os, SourceLineInfo const& info );
504

Callers 2

registerTestMethodsFunction · 0.85
RunContextMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected