Lines Matching defs:SourceMgrTest
1 //===- unittests/Support/SourceMgrTest.cpp - SourceMgr tests --------------===//
18 class SourceMgrTest : public testing::Test {
49 TEST_F(SourceMgrTest, BasicError) {
59 TEST_F(SourceMgrTest, BasicWarning) {
69 TEST_F(SourceMgrTest, BasicRemark) {
79 TEST_F(SourceMgrTest, BasicNote) {
89 TEST_F(SourceMgrTest, LocationAtEndOfLine) {
99 TEST_F(SourceMgrTest, LocationAtNewline) {
109 TEST_F(SourceMgrTest, LocationAtEmptyBuffer) {
119 TEST_F(SourceMgrTest, LocationJustOnSoleNewline) {
129 TEST_F(SourceMgrTest, LocationJustAfterSoleNewline) {
139 TEST_F(SourceMgrTest, LocationJustAfterNonNewline) {
149 TEST_F(SourceMgrTest, LocationOnFirstLineOfMultiline) {
159 TEST_F(SourceMgrTest, LocationOnEOLOfFirstLineOfMultiline) {
169 TEST_F(SourceMgrTest, LocationOnSecondLineOfMultiline) {
179 TEST_F(SourceMgrTest, LocationOnSecondLineOfMultilineNoSecondEOL) {
189 TEST_F(SourceMgrTest, LocationOnEOLOfSecondSecondLineOfMultiline) {
217 TEST_F(SourceMgrTest, LocationBeforeEndOf255ByteBuffer) {
228 TEST_F(SourceMgrTest, LocationAtEndOf255ByteBuffer) {
239 TEST_F(SourceMgrTest, LocationPastEndOf255ByteBuffer) {
250 TEST_F(SourceMgrTest, LocationBeforeEndOf255ByteBufferEndingInNewline) {
261 TEST_F(SourceMgrTest, LocationAtEndOf255ByteBufferEndingInNewline) {
272 TEST_F(SourceMgrTest, LocationPastEndOf255ByteBufferEndingInNewline) {
287 TEST_F(SourceMgrTest, LocationBeforeEndOf256ByteBuffer) {
298 TEST_F(SourceMgrTest, LocationAtEndOf256ByteBuffer) {
309 TEST_F(SourceMgrTest, LocationPastEndOf256ByteBuffer) {
320 TEST_F(SourceMgrTest, LocationBeforeEndOf256ByteBufferEndingInNewline) {
331 TEST_F(SourceMgrTest, LocationAtEndOf256ByteBufferEndingInNewline) {
342 TEST_F(SourceMgrTest, LocationPastEndOf256ByteBufferEndingInNewline) {
357 TEST_F(SourceMgrTest, LocationBeforeEndOf257ByteBuffer) {
368 TEST_F(SourceMgrTest, LocationAtEndOf257ByteBuffer) {
379 TEST_F(SourceMgrTest, LocationPastEndOf257ByteBuffer) {
390 TEST_F(SourceMgrTest, LocationBeforeEndOf257ByteBufferEndingInNewline) {
401 TEST_F(SourceMgrTest, LocationAtEndOf257ByteBufferEndingInNewline) {
412 TEST_F(SourceMgrTest, LocationPastEndOf257ByteBufferEndingInNewline) {
423 TEST_F(SourceMgrTest, BasicRange) {
433 TEST_F(SourceMgrTest, RangeWithTab) {
443 TEST_F(SourceMgrTest, MultiLineRange) {
453 TEST_F(SourceMgrTest, MultipleRanges) {
464 TEST_F(SourceMgrTest, OverlappingRanges) {
475 TEST_F(SourceMgrTest, BasicFixit) {
487 TEST_F(SourceMgrTest, FixitForTab) {
499 TEST_F(SourceMgrTest, PrintWithoutLoc) {