Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
compiler_source_test.cc File Reference

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>
Include dependency graph for compiler_source_test.cc:

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)
 

Detailed Description

Tests for ah-source.H.

Definition in file compiler_source_test.cc.

Function Documentation

◆ TEST() [1/7]

TEST ( SourceManager  ,
AddVirtualFileStoresNameAndText   
)

◆ TEST() [2/7]

TEST ( SourceManager  ,
EmptySpanIsAllowedAndProducesCaretWidthOne   
)

◆ TEST() [3/7]

TEST ( SourceManager  ,
InvalidOffsetThrows   
)

◆ TEST() [4/7]

TEST ( SourceManager  ,
LoadFileReadsContent   
)

◆ TEST() [5/7]

TEST ( SourceManager  ,
PositionResolvesLineAndColumn   
)

◆ TEST() [6/7]

TEST ( SourceManager  ,
SnippetMarksSingleLineSpan   
)

◆ TEST() [7/7]

TEST ( SourceManager  ,
SpanSliceReturnsExpectedSubstring   
)