@@ -3443,51 +3443,51 @@ TEST(RedirectingFileSystemTest, ExternalPaths) {
3443
3443
TEST (RedirectingFileSystemTest, Exists) {
3444
3444
IntrusiveRefCntPtr<DummyFileSystem> Dummy (new NoStatusDummyFileSystem ());
3445
3445
auto YAML =
3446
- MemoryBuffer::getMemBuffer (" {\n "
3447
- " 'version': 0,\n "
3448
- " 'roots': [\n "
3449
- " {\n "
3450
- " 'type': 'directory-remap',\n "
3451
- " 'name': '/dremap',\n "
3452
- " 'external-contents': '/a',\n "
3453
- " },"
3454
- " {\n "
3455
- " 'type': 'directory-remap',\n "
3456
- " 'name': '/dmissing',\n "
3457
- " 'external-contents': '/dmissing',\n "
3458
- " },"
3459
- " {\n "
3460
- " 'type': 'directory',\n "
3461
- " 'name': '/both',\n "
3462
- " 'contents': [\n "
3463
- " {\n "
3464
- " 'type': 'file',\n "
3465
- " 'name': 'vfile',\n "
3466
- " 'external-contents': '/c'\n "
3467
- " }\n "
3468
- " ]\n "
3469
- " },\n "
3470
- " {\n "
3471
- " 'type': 'directory',\n "
3472
- " 'name': '/vdir',\n "
3473
- " 'contents': ["
3474
- " {\n "
3475
- " 'type': 'directory-remap',\n "
3476
- " 'name': 'dremap',\n "
3477
- " 'external-contents': '/b'\n "
3478
- " },\n "
3479
- " {\n "
3480
- " 'type': 'file',\n "
3481
- " 'name': 'missing',\n "
3482
- " 'external-contents': '/missing'\n "
3483
- " },\n "
3484
- " {\n "
3485
- " 'type': 'file',\n "
3486
- " 'name': 'vfile',\n "
3487
- " 'external-contents': '/c'\n "
3488
- " }]\n "
3489
- " }]\n "
3490
- " }" );
3446
+ MemoryBuffer::getMemBuffer (" {\n "
3447
+ " 'version': 0,\n "
3448
+ " 'roots': [\n "
3449
+ " {\n "
3450
+ " 'type': 'directory-remap',\n "
3451
+ " 'name': '/dremap',\n "
3452
+ " 'external-contents': '/a',\n "
3453
+ " },"
3454
+ " {\n "
3455
+ " 'type': 'directory-remap',\n "
3456
+ " 'name': '/dmissing',\n "
3457
+ " 'external-contents': '/dmissing',\n "
3458
+ " },"
3459
+ " {\n "
3460
+ " 'type': 'directory',\n "
3461
+ " 'name': '/both',\n "
3462
+ " 'contents': [\n "
3463
+ " {\n "
3464
+ " 'type': 'file',\n "
3465
+ " 'name': 'vfile',\n "
3466
+ " 'external-contents': '/c'\n "
3467
+ " }\n "
3468
+ " ]\n "
3469
+ " },\n "
3470
+ " {\n "
3471
+ " 'type': 'directory',\n "
3472
+ " 'name': '/vdir',\n "
3473
+ " 'contents': ["
3474
+ " {\n "
3475
+ " 'type': 'directory-remap',\n "
3476
+ " 'name': 'dremap',\n "
3477
+ " 'external-contents': '/b'\n "
3478
+ " },\n "
3479
+ " {\n "
3480
+ " 'type': 'file',\n "
3481
+ " 'name': 'missing',\n "
3482
+ " 'external-contents': '/missing'\n "
3483
+ " },\n "
3484
+ " {\n "
3485
+ " 'type': 'file',\n "
3486
+ " 'name': 'vfile',\n "
3487
+ " 'external-contents': '/c'\n "
3488
+ " }]\n "
3489
+ " }]\n "
3490
+ " }" );
3491
3491
3492
3492
Dummy->addDirectory (" /a" );
3493
3493
Dummy->addRegularFile (" /a/foo" );
@@ -3496,7 +3496,7 @@ TEST(RedirectingFileSystemTest, Exists) {
3496
3496
Dummy->addRegularFile (" /both/foo" );
3497
3497
3498
3498
auto Redirecting = vfs::RedirectingFileSystem::create (
3499
- std::move (YAML), nullptr , " " , nullptr , Dummy);
3499
+ std::move (YAML), nullptr , " " , nullptr , Dummy);
3500
3500
3501
3501
EXPECT_TRUE (Redirecting->exists (" /dremap" ));
3502
3502
EXPECT_FALSE (Redirecting->exists (" /dmissing" ));
@@ -3514,22 +3514,22 @@ TEST(RedirectingFileSystemTest, Exists) {
3514
3514
TEST (RedirectingFileSystemTest, ExistsFallback) {
3515
3515
IntrusiveRefCntPtr<DummyFileSystem> Dummy (new NoStatusDummyFileSystem ());
3516
3516
auto YAML =
3517
- MemoryBuffer::getMemBuffer (" {\n "
3518
- " 'version': 0,\n "
3519
- " 'redirecting-with': 'fallback',\n "
3520
- " 'roots': [\n "
3521
- " {\n "
3522
- " 'type': 'file',\n "
3523
- " 'name': '/fallback',\n "
3524
- " 'external-contents': '/missing',\n "
3525
- " },"
3526
- " ]\n "
3527
- " }" );
3517
+ MemoryBuffer::getMemBuffer (" {\n "
3518
+ " 'version': 0,\n "
3519
+ " 'redirecting-with': 'fallback',\n "
3520
+ " 'roots': [\n "
3521
+ " {\n "
3522
+ " 'type': 'file',\n "
3523
+ " 'name': '/fallback',\n "
3524
+ " 'external-contents': '/missing',\n "
3525
+ " },"
3526
+ " ]\n "
3527
+ " }" );
3528
3528
3529
3529
Dummy->addRegularFile (" /fallback" );
3530
3530
3531
3531
auto Redirecting = vfs::RedirectingFileSystem::create (
3532
- std::move (YAML), nullptr , " " , nullptr , Dummy);
3532
+ std::move (YAML), nullptr , " " , nullptr , Dummy);
3533
3533
3534
3534
EXPECT_TRUE (Redirecting->exists (" /fallback" ));
3535
3535
EXPECT_FALSE (Redirecting->exists (" /missing" ));
@@ -3538,23 +3538,23 @@ TEST(RedirectingFileSystemTest, ExistsFallback) {
3538
3538
TEST (RedirectingFileSystemTest, ExistsRedirectOnly) {
3539
3539
IntrusiveRefCntPtr<DummyFileSystem> Dummy (new NoStatusDummyFileSystem ());
3540
3540
auto YAML =
3541
- MemoryBuffer::getMemBuffer (" {\n "
3542
- " 'version': 0,\n "
3543
- " 'redirecting-with': 'redirect-only',\n "
3544
- " 'roots': [\n "
3545
- " {\n "
3546
- " 'type': 'file',\n "
3547
- " 'name': '/vfile',\n "
3548
- " 'external-contents': '/a',\n "
3549
- " },"
3550
- " ]\n "
3551
- " }" );
3541
+ MemoryBuffer::getMemBuffer (" {\n "
3542
+ " 'version': 0,\n "
3543
+ " 'redirecting-with': 'redirect-only',\n "
3544
+ " 'roots': [\n "
3545
+ " {\n "
3546
+ " 'type': 'file',\n "
3547
+ " 'name': '/vfile',\n "
3548
+ " 'external-contents': '/a',\n "
3549
+ " },"
3550
+ " ]\n "
3551
+ " }" );
3552
3552
3553
3553
Dummy->addRegularFile (" /a" );
3554
3554
Dummy->addRegularFile (" /b" );
3555
3555
3556
3556
auto Redirecting = vfs::RedirectingFileSystem::create (
3557
- std::move (YAML), nullptr , " " , nullptr , Dummy);
3557
+ std::move (YAML), nullptr , " " , nullptr , Dummy);
3558
3558
3559
3559
EXPECT_FALSE (Redirecting->exists (" /a" ));
3560
3560
EXPECT_FALSE (Redirecting->exists (" /b" ));
0 commit comments