static const char *YAMLContent =
"---\n"
"MainSourceFile: 'path/to/source.cpp'\n"
- "Diagnostics: \n"
+ "Diagnostics:\n"
" - DiagnosticName: 'diagnostic#1\'\n"
- " DiagnosticMessage: \n"
+ " DiagnosticMessage:\n"
" Message: 'message #1'\n"
" FilePath: 'path/to/source.cpp'\n"
" FileOffset: 55\n"
- " Replacements: \n"
+ " Replacements:\n"
" - FilePath: 'path/to/source.cpp'\n"
" Offset: 100\n"
" Length: 12\n"
" ReplacementText: 'replacement #1'\n"
" - DiagnosticName: 'diagnostic#2'\n"
- " DiagnosticMessage: \n"
+ " DiagnosticMessage:\n"
" Message: 'message #2'\n"
" FilePath: 'path/to/header.h'\n"
" FileOffset: 60\n"
- " Replacements: \n"
+ " Replacements:\n"
" - FilePath: 'path/to/header.h'\n"
" Offset: 62\n"
" Length: 2\n"
" ReplacementText: 'replacement #2'\n"
" - DiagnosticName: 'diagnostic#3'\n"
- " DiagnosticMessage: \n"
+ " DiagnosticMessage:\n"
" Message: 'message #3'\n"
" FilePath: 'path/to/source2.cpp'\n"
" FileOffset: 72\n"
" Replacements: []\n"
- " Notes: \n"
+ " Notes:\n"
" - Message: Note1\n"
" FilePath: 'path/to/note1.cpp'\n"
" FileOffset: 88\n"
"Key: 'input.cpp:20'\n"
"FilePath: input.cpp\n"
"Error: ''\n"
- "InsertedHeaders: \n" // Extra whitespace here!
+ "InsertedHeaders:\n"
" - a.h\n"
- "RemovedHeaders: \n" // Extra whitespace here!
+ "RemovedHeaders:\n"
" - b.h\n"
- "Replacements: \n" // Extra whitespace here!
+ "Replacements:\n"
" - FilePath: input.cpp\n"
" Offset: 20\n"
" Length: 0\n"
"Key: 'input.cpp:20'\n"
"FilePath: input.cpp\n"
"Error: 'ok'\n"
- "InsertedHeaders: \n" // Extra whitespace here!
+ "InsertedHeaders:\n"
" - a.h\n"
- "RemovedHeaders: \n" // Extra whitespace here!
+ "RemovedHeaders:\n"
" - b.h\n"
- "Replacements: \n" // Extra whitespace here!
+ "Replacements:\n"
" - FilePath: input.cpp\n"
" Offset: 20\n"
" Length: 0\n"
// NOTE: If this test starts to fail for no obvious reason, check whitespace.
ASSERT_STREQ("---\n"
"MainSourceFile: '/path/to/source.cpp'\n"
- "Replacements: \n" // Extra whitespace here!
+ "Replacements:\n"
" - FilePath: '/path/to/file1.h'\n"
" Offset: 232\n"
" Length: 56\n"
// NOTE: If this test starts to fail for no obvious reason, check whitespace.
ASSERT_STREQ("---\n"
"MainSourceFile: '/path/to/source.cpp'\n"
- "Replacements: \n" // Extra whitespace here!
+ "Replacements:\n"
" - FilePath: '/path/to/file1.h'\n"
" Offset: 0\n"
" Length: 0\n"