Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ public void CreateFromDirectory_InvalidFormat_Throws(TarEntryFormat format)
TarFile.CreateFromDirectory(source.Path, destinationArchiveFileName, includeBaseDirectory: false, format));
}

[Theory]
[ConditionalTheory(typeof(MountHelper), nameof(MountHelper.CanCreateHardLinks))]
[InlineData(true)]
[InlineData(false)]
public void CreateFromDirectory_UsesWriterOptions(bool toggle)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void CreateFromDirectory_InvalidFormat_Throws(TarEntryFormat format)
TarFile.CreateFromDirectory(source.Path, archive, includeBaseDirectory: false, format));
}

[Theory]
[ConditionalTheory(typeof(MountHelper), nameof(MountHelper.CanCreateHardLinks))]
[InlineData(true)]
[InlineData(false)]
public void CreateFromDirectory_UsesWriterOptions(bool toggle)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ await Assert.ThrowsAsync<ArgumentOutOfRangeException>("format", () =>
}
}

[Theory]
[ConditionalTheory(typeof(MountHelper), nameof(MountHelper.CanCreateHardLinks))]
[InlineData(true)]
[InlineData(false)]
public async Task CreateFromDirectoryAsync_UsesWriterOptions(bool toggle)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ await Assert.ThrowsAsync<ArgumentOutOfRangeException>("format", () =>
}
}

[Theory]
[ConditionalTheory(typeof(MountHelper), nameof(MountHelper.CanCreateHardLinks))]
[InlineData(true)]
[InlineData(false)]
public async Task CreateFromDirectoryAsync_UsesWriterOptions(bool toggle)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ public void LinkBeforeTarget()
Assert.True(File.Exists(linkPath), $"{linkPath}' does not exist.");
}

[Theory]
[ConditionalTheory(typeof(MountHelper), nameof(MountHelper.CanCreateHardLinks))]
[InlineData(TarEntryFormat.V7, TarHardLinkMode.PreserveLink)]
[InlineData(TarEntryFormat.Ustar, TarHardLinkMode.PreserveLink)]
[InlineData(TarEntryFormat.Pax, TarHardLinkMode.PreserveLink)]
Expand Down Expand Up @@ -425,7 +425,7 @@ public void HardLinkExtractionRoundtrip(TarEntryFormat format, TarHardLinkMode l
}
}

[Fact]
[ConditionalFact(typeof(MountHelper), nameof(MountHelper.CanCreateHardLinks))]
public void HardLinkExtraction_CopyContents()
{
using TempDirectory root = new TempDirectory();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ public async Task LinkBeforeTargetAsync()
Assert.True(File.Exists(linkPath), $"{linkPath}' does not exist.");
}

[Fact]
[ConditionalFact(typeof(MountHelper), nameof(MountHelper.CanCreateHardLinks))]
public async Task HardLinkExtraction_CopyContentsAsync()
{
using TempDirectory root = new TempDirectory();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public void Add_SymbolicLink(TarEntryFormat format, bool createTarget)
}
}

[Theory]
[ConditionalTheory(typeof(MountHelper), nameof(MountHelper.CanCreateHardLinks))]
[InlineData(TarEntryFormat.V7, TarHardLinkMode.PreserveLink)]
[InlineData(TarEntryFormat.Ustar, TarHardLinkMode.PreserveLink)]
[InlineData(TarEntryFormat.Pax, TarHardLinkMode.PreserveLink)]
Expand Down
Loading