MCPcopy Create free account
hub / github.com/Squirrel/Squirrel.Windows / FileIsLikelyPEImageTest

Method FileIsLikelyPEImageTest

test/UtilityTests.cs:134–143  ·  view source on GitHub ↗
(string input, bool result)

Source from the content-addressed store, hash-verified

132 }
133
134 [Theory]
135 [InlineData("foo.dll", true)]
136 [InlineData("foo.DlL", true)]
137 [InlineData("C:\\Foo\\Bar\\foo.Exe", true)]
138 [InlineData("Test.png", false)]
139 [InlineData(".rels", false)]
140 public void FileIsLikelyPEImageTest(string input, bool result)
141 {
142 Assert.Equal(result, Utility.FileIsLikelyPEImage(input));
143 }
144
145 [Theory]
146 [InlineData("C:\\Users\\bob\\temp\\pkgPath\\lib\\net45\\foo.exe", "C:\\Users\\bob\\temp\\pkgPath", true)]

Callers

nothing calls this directly

Calls 1

FileIsLikelyPEImageMethod · 0.80

Tested by

no test coverage detected