@@ -447,7 +447,7 @@ public void GlobalCoverageBackfillMatchesUniqueCaseInsensitiveSuffixOnlyOnWindow
447447 else
448448 {
449449 result . MatchedFiles . Should ( ) . Be ( 0 ) ;
450- result . CanPublishCoverage . Should ( ) . BeTrue ( ) ;
450+ result . CanPublishCoverage . Should ( ) . BeFalse ( ) ;
451451 result . UpdatedFiles . Should ( ) . Be ( 0 ) ;
452452 globalCoverage . Components [ 0 ] . Files [ 0 ] . ExecutedBitmap . Should ( ) . Equal ( [ 0b_0000_0000 ] ) ;
453453 }
@@ -487,7 +487,7 @@ public void GlobalCoverageBackfillDoesNotSuffixMatchAbsolutePathOutsideSourceRoo
487487
488488 result . Applied . Should ( ) . BeTrue ( ) ;
489489 result . HasBackendCoverage . Should ( ) . BeTrue ( ) ;
490- result . CanPublishCoverage . Should ( ) . BeTrue ( ) ;
490+ result . CanPublishCoverage . Should ( ) . BeFalse ( ) ;
491491 result . Backfilled . Should ( ) . BeFalse ( ) ;
492492 result . MatchedFiles . Should ( ) . Be ( 0 ) ;
493493 result . UpdatedFiles . Should ( ) . Be ( 0 ) ;
@@ -526,7 +526,7 @@ public void GlobalCoverageBackfillDoesNotSuffixMatchAbsolutePathWhenSourceRootIs
526526
527527 result . Applied . Should ( ) . BeTrue ( ) ;
528528 result . HasBackendCoverage . Should ( ) . BeTrue ( ) ;
529- result . CanPublishCoverage . Should ( ) . BeTrue ( ) ;
529+ result . CanPublishCoverage . Should ( ) . BeFalse ( ) ;
530530 result . Backfilled . Should ( ) . BeFalse ( ) ;
531531 result . MatchedFiles . Should ( ) . Be ( 0 ) ;
532532 result . UpdatedFiles . Should ( ) . Be ( 0 ) ;
@@ -567,7 +567,7 @@ public void GlobalCoverageBackfillDoesNotSuffixMatchRelativePathWithParentDirect
567567
568568 result . Applied . Should ( ) . BeTrue ( ) ;
569569 result . HasBackendCoverage . Should ( ) . BeTrue ( ) ;
570- result . CanPublishCoverage . Should ( ) . BeTrue ( ) ;
570+ result . CanPublishCoverage . Should ( ) . BeFalse ( ) ;
571571 result . Backfilled . Should ( ) . BeFalse ( ) ;
572572 result . MatchedFiles . Should ( ) . Be ( 0 ) ;
573573 result . UpdatedFiles . Should ( ) . Be ( 0 ) ;
@@ -609,7 +609,7 @@ public void GlobalCoverageBackfillIgnoresAmbiguousNonExactBackendKeyMatches()
609609
610610 result . Applied . Should ( ) . BeTrue ( ) ;
611611 result . HasBackendCoverage . Should ( ) . BeTrue ( ) ;
612- result . CanPublishCoverage . Should ( ) . BeTrue ( ) ;
612+ result . CanPublishCoverage . Should ( ) . BeFalse ( ) ;
613613 result . Backfilled . Should ( ) . BeFalse ( ) ;
614614 result . MatchedFiles . Should ( ) . Be ( 0 ) ;
615615 result . UpdatedFiles . Should ( ) . Be ( 0 ) ;
@@ -652,7 +652,7 @@ public void GlobalCoverageBackfillIgnoresBackendKeyWhenExactAndDistinctSuffixLoc
652652
653653 result . Applied . Should ( ) . BeTrue ( ) ;
654654 result . HasBackendCoverage . Should ( ) . BeTrue ( ) ;
655- result . CanPublishCoverage . Should ( ) . BeTrue ( ) ;
655+ result . CanPublishCoverage . Should ( ) . BeFalse ( ) ;
656656 result . Backfilled . Should ( ) . BeFalse ( ) ;
657657 result . MatchedFiles . Should ( ) . Be ( 0 ) ;
658658 result . UpdatedFiles . Should ( ) . Be ( 0 ) ;
@@ -817,7 +817,7 @@ public void GlobalCoverageBackfillRejectsAbsoluteUriPathBeforeSuffixMatch()
817817
818818 result . Applied . Should ( ) . BeTrue ( ) ;
819819 result . HasBackendCoverage . Should ( ) . BeTrue ( ) ;
820- result . CanPublishCoverage . Should ( ) . BeTrue ( ) ;
820+ result . CanPublishCoverage . Should ( ) . BeFalse ( ) ;
821821 result . Backfilled . Should ( ) . BeFalse ( ) ;
822822 result . MatchedFiles . Should ( ) . Be ( 0 ) ;
823823 result . UpdatedFiles . Should ( ) . Be ( 0 ) ;
@@ -907,7 +907,7 @@ public void PathMatcherRejectsAmbiguousCaseInsensitiveExactPaths()
907907 }
908908
909909 [ Fact ]
910- public void GlobalCoverageBackfillIgnoresBackendOnlyFiles ( )
910+ public void GlobalCoverageBackfillBlocksPublishWhenBackendOnlyFilesAreActive ( )
911911 {
912912 var globalCoverage = new GlobalCoverageInfo
913913 {
@@ -936,14 +936,15 @@ public void GlobalCoverageBackfillIgnoresBackendOnlyFiles()
936936
937937 result . Applied . Should ( ) . BeTrue ( ) ;
938938 result . HasBackendCoverage . Should ( ) . BeTrue ( ) ;
939- result . CanPublishCoverage . Should ( ) . BeTrue ( ) ;
939+ result . CanPublishCoverage . Should ( ) . BeFalse ( ) ;
940+ result . Backfilled . Should ( ) . BeFalse ( ) ;
940941 result . MatchedFiles . Should ( ) . Be ( 0 ) ;
941942 result . UpdatedFiles . Should ( ) . Be ( 0 ) ;
942943 globalCoverage . GetTotalPercentage ( ) . Should ( ) . Be ( 100 ) ;
943944 }
944945
945946 [ Fact ]
946- public void GlobalCoverageBackfillAppliesMatchedBackendCoverageAndIgnoresBackendOnlyFiles ( )
947+ public void GlobalCoverageBackfillBlocksPublishWhenAnyBackendActiveFileIsMissing ( )
947948 {
948949 var globalCoverage = new GlobalCoverageInfo
949950 {
@@ -973,15 +974,15 @@ public void GlobalCoverageBackfillAppliesMatchedBackendCoverageAndIgnoresBackend
973974
974975 result . Applied . Should ( ) . BeTrue ( ) ;
975976 result . HasBackendCoverage . Should ( ) . BeTrue ( ) ;
976- result . CanPublishCoverage . Should ( ) . BeTrue ( ) ;
977- result . Backfilled . Should ( ) . BeTrue ( ) ;
977+ result . CanPublishCoverage . Should ( ) . BeFalse ( ) ;
978+ result . Backfilled . Should ( ) . BeFalse ( ) ;
978979 result . MatchedFiles . Should ( ) . Be ( 1 ) ;
979980 result . UpdatedFiles . Should ( ) . Be ( 1 ) ;
980981 globalCoverage . Components [ 0 ] . Files [ 0 ] . ExecutedBitmap . Should ( ) . Equal ( [ 0b_1000_0000 ] ) ;
981982 }
982983
983984 [ Fact ]
984- public void GlobalCoverageBackfillCreatesExecutedBitmapForMatchedCoverageAndIgnoresBackendOnlyFiles ( )
985+ public void GlobalCoverageBackfillCreatesExecutedBitmapForMatchedCoverage ( )
985986 {
986987 var globalCoverage = new GlobalCoverageInfo
987988 {
@@ -1003,8 +1004,7 @@ public void GlobalCoverageBackfillCreatesExecutedBitmapForMatchedCoverageAndIgno
10031004 var backfill = CoverageBackfillData . FromBackendCoverage (
10041005 new Dictionary < string , string >
10051006 {
1006- [ "src/Calculator.cs" ] = Convert . ToBase64String ( [ 0b_1000_0000 ] ) ,
1007- [ "src/Other.cs" ] = Convert . ToBase64String ( [ 0b_1000_0000 ] )
1007+ [ "src/Calculator.cs" ] = Convert . ToBase64String ( [ 0b_1000_0000 ] )
10081008 } ) ;
10091009
10101010 var result = CoverageBackfillApplicator . ApplyToGlobalCoverage ( globalCoverage , backfill , CIEnvironmentValues . Instance ) ;
0 commit comments