|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Tests for ah-source.H. More...
#include <gtest/gtest.h>#include <ah-source.H>#include <atomic>#include <chrono>#include <filesystem>#include <fstream>#include <string>#include <unistd.h>Go to the source code of this file.
Functions | |
| TEST (SourceManager, AddVirtualFileStoresNameAndText) | |
| TEST (SourceManager, PositionResolvesLineAndColumn) | |
| TEST (SourceManager, SpanSliceReturnsExpectedSubstring) | |
| TEST (SourceManager, SnippetMarksSingleLineSpan) | |
| TEST (SourceManager, EmptySpanIsAllowedAndProducesCaretWidthOne) | |
| TEST (SourceManager, LoadFileReadsContent) | |
| TEST (SourceManager, InvalidOffsetThrows) | |
Tests for ah-source.H.
Definition in file compiler_source_test.cc.
| TEST | ( | SourceManager | , |
| AddVirtualFileStoresNameAndText | |||
| ) |
Definition at line 88 of file compiler_source_test.cc.
References Aleph::Source_Manager::add_virtual_file(), and Aleph::blossom_maximum_cardinality_matching().
| TEST | ( | SourceManager | , |
| EmptySpanIsAllowedAndProducesCaretWidthOne | |||
| ) |
Definition at line 152 of file compiler_source_test.cc.
References Aleph::Source_Manager::add_virtual_file(), and Aleph::blossom_maximum_cardinality_matching().
| TEST | ( | SourceManager | , |
| InvalidOffsetThrows | |||
| ) |
Definition at line 185 of file compiler_source_test.cc.
References Aleph::Source_Manager::add_virtual_file(), and Aleph::blossom_maximum_cardinality_matching().
| TEST | ( | SourceManager | , |
| LoadFileReadsContent | |||
| ) |
Definition at line 166 of file compiler_source_test.cc.
References Aleph::blossom_maximum_cardinality_matching(), Aleph::Source_Manager::load_file(), and out.
| TEST | ( | SourceManager | , |
| PositionResolvesLineAndColumn | |||
| ) |
Definition at line 100 of file compiler_source_test.cc.
References Aleph::Source_Manager::add_virtual_file(), and Aleph::blossom_maximum_cardinality_matching().
| TEST | ( | SourceManager | , |
| SnippetMarksSingleLineSpan | |||
| ) |
Definition at line 136 of file compiler_source_test.cc.
References Aleph::Source_Manager::add_virtual_file(), and Aleph::blossom_maximum_cardinality_matching().
| TEST | ( | SourceManager | , |
| SpanSliceReturnsExpectedSubstring | |||
| ) |
Definition at line 123 of file compiler_source_test.cc.
References Aleph::Source_Manager::add_virtual_file(), and Aleph::blossom_maximum_cardinality_matching().