Skip to content

patch: support TOML file processing #706

patch: support TOML file processing

patch: support TOML file processing #706

GitHub Actions / test results succeeded Nov 25, 2023 in 1s

test results ✅

Tests passed successfully

Report Passed Failed Skipped Time
build/test-results/test/TEST-me.itzg.helpers.assertcmd.FileExistsTest.xml 7✅ 155ms
build/test-results/test/TEST-me.itzg.helpers.assertcmd.FileNotExistsTest.xml 4✅ 23ms
build/test-results/test/TEST-me.itzg.helpers.assertcmd.JsonPathEqualsTest.xml 6✅ 246ms
build/test-results/test/TEST-me.itzg.helpers.assertcmd.PropertyEqualsTest.xml 4✅ 16ms
build/test-results/test/TEST-me.itzg.helpers.CharsetDetectorTest.xml 2✅ 61ms
build/test-results/test/TEST-me.itzg.helpers.curseforge.CurseForgeApiClientTest.xml 1✅ 575ms
build/test-results/test/TEST-me.itzg.helpers.curseforge.CurseForgeFilesCommandTest.xml 2✅ 350ms
build/test-results/test/TEST-me.itzg.helpers.curseforge.CurseForgeInstallerTest.xml 1⚪ 0ms
build/test-results/test/TEST-me.itzg.helpers.curseforge.ModFileRefResolverTest.xml 5✅ 117ms
build/test-results/test/TEST-me.itzg.helpers.env.InterpolatorTest.xml 2✅ 915ms
build/test-results/test/TEST-me.itzg.helpers.fabric.FabricLauncherInstallerTest.xml 6✅ 1⚪ 231ms
build/test-results/test/TEST-me.itzg.helpers.files.AntPathMatcherTest.xml 4✅ 6ms
build/test-results/test/TEST-me.itzg.helpers.files.ManifestsTest.xml 1✅ 26ms
build/test-results/test/TEST-me.itzg.helpers.find.FindCommandTest.xml 17✅ 155ms
build/test-results/test/TEST-me.itzg.helpers.find.FindCommandTest$appliesMinDepth.xml 3✅ 13ms
build/test-results/test/TEST-me.itzg.helpers.find.FindCommandTest$deletes.xml 6✅ 44ms
build/test-results/test/TEST-me.itzg.helpers.find.FindCommandTest$formatsDirname.xml 3✅ 17ms
build/test-results/test/TEST-me.itzg.helpers.find.FindCommandTest$formatsRelative.xml 3✅ 18ms
build/test-results/test/TEST-me.itzg.helpers.get.ExistsTest.xml 3✅ 315ms
build/test-results/test/TEST-me.itzg.helpers.get.GetCommandTest.xml 8✅ 2s
build/test-results/test/TEST-me.itzg.helpers.get.JsonPathTests.xml 12✅ 227ms
build/test-results/test/TEST-me.itzg.helpers.get.OutputToDirTest.xml 11✅ 269ms
build/test-results/test/TEST-me.itzg.helpers.get.OutputToFileTest.xml 8✅ 135ms
build/test-results/test/TEST-me.itzg.helpers.http.LenientUriConverterTest.xml 3✅ 3ms
build/test-results/test/TEST-me.itzg.helpers.http.ObjectFetchBuilderTest.xml 4✅ 23ms
build/test-results/test/TEST-me.itzg.helpers.http.ObjectListFetchBuilderTest.xml 1✅ 5ms
build/test-results/test/TEST-me.itzg.helpers.http.OutputToDirectoryFetchBuilderTest.xml 6✅ 51ms
build/test-results/test/TEST-me.itzg.helpers.http.SpecificFileFetchBuilderTest.xml 3✅ 10ms
build/test-results/test/TEST-me.itzg.helpers.modrinth.InstallModrinthModpackCommandTest.xml 5✅ 138ms
build/test-results/test/TEST-me.itzg.helpers.modrinth.ModrinthApiClientTest.xml 1✅ 10ms
build/test-results/test/TEST-me.itzg.helpers.modrinth.ModrinthApiPackFetcherTest.xml 4✅ 49ms
build/test-results/test/TEST-me.itzg.helpers.modrinth.ModrinthCommandTest.xml 5✅ 195ms
build/test-results/test/TEST-me.itzg.helpers.modrinth.ModrinthHttpPackFetcherTest.xml 1✅ 5ms
build/test-results/test/TEST-me.itzg.helpers.modrinth.ModrinthPackInstallerTest.xml 3✅ 13ms
build/test-results/test/TEST-me.itzg.helpers.modrinth.ProjectRefTest.xml 9✅ 6ms
build/test-results/test/TEST-me.itzg.helpers.mvn.MavenRepoApiTest.xml 3✅ 101ms
build/test-results/test/TEST-me.itzg.helpers.patch.PatchSetProcessorTest.xml 7✅ 72ms
build/test-results/test/TEST-me.itzg.helpers.patch.ValueTypeConverterTest.xml 17✅ 17ms
build/test-results/test/TEST-me.itzg.helpers.properties.SetPropertiesCommandTest.xml 18✅ 79ms
build/test-results/test/TEST-me.itzg.helpers.singles.HashCommandTest.xml 1✅ 5ms
build/test-results/test/TEST-me.itzg.helpers.singles.YamlPathCmdTest.xml 1✅ 5ms
build/test-results/test/TEST-me.itzg.helpers.sync.InterpolatingFileProcessorTest.xml 2✅ 49ms
build/test-results/test/TEST-me.itzg.helpers.sync.MulitCopyCommandTest$DirectorySrc.xml 4✅ 24ms
build/test-results/test/TEST-me.itzg.helpers.sync.MulitCopyCommandTest$FileListingSrc.xml 1✅ 4ms
build/test-results/test/TEST-me.itzg.helpers.sync.MulitCopyCommandTest$FileSrc.xml 2✅ 6ms
build/test-results/test/TEST-me.itzg.helpers.sync.MulitCopyCommandTest$RemoteSrc.xml 3✅ 45ms
build/test-results/test/TEST-me.itzg.helpers.users.ManageUsersCommandTest$file.xml 8✅ 55ms
build/test-results/test/TEST-me.itzg.helpers.users.ManageUsersCommandTest$ops.xml 3✅ 30ms
build/test-results/test/TEST-me.itzg.helpers.users.ManageUsersCommandTest$whitelist.xml 9✅ 61ms
build/test-results/test/TEST-me.itzg.helpers.users.ManageUsersCommandTest$whitelistOrOpsText.xml 6✅ 42ms
build/test-results/test/TEST-me.itzg.helpers.vanillatweaks.VanillaTweaksCommandTest.xml 1✅ 47ms
build/test-results/test/TEST-me.itzg.helpers.versions.CompareVersionsCommandTest.xml 10✅ 40ms

✅ build/test-results/test/TEST-me.itzg.helpers.assertcmd.FileExistsTest.xml

7 tests were completed in 155ms with 7 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.assertcmd.FileExistsTest 7✅ 155ms

✅ me.itzg.helpers.assertcmd.FileExistsTest

✅ failsWhenGlobFailsToFindFiles(Path)
✅ passesWhenGlobFileInWorkingDirectory()
✅ passesWhenGlobFindsAllFiles(Path)
✅ failsWhenSomeMissing(Path)
✅ passesWhenGlobFileSubdir()
✅ passesWhenGlobDoubleStarAndMultipleMatches()
✅ passesWhenAllExist(Path)

✅ build/test-results/test/TEST-me.itzg.helpers.assertcmd.FileNotExistsTest.xml

4 tests were completed in 23ms with 4 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.assertcmd.FileNotExistsTest 4✅ 23ms

✅ me.itzg.helpers.assertcmd.FileNotExistsTest

✅ passesWhenAllMissing(Path)
✅ passesWhenGlobFindsNothing(Path)
✅ failsWhenAnyExist(Path)
✅ failsWhenGlobFindsAnyFiles(Path)

✅ build/test-results/test/TEST-me.itzg.helpers.assertcmd.JsonPathEqualsTest.xml

6 tests were completed in 246ms with 6 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.assertcmd.JsonPathEqualsTest 6✅ 246ms

✅ me.itzg.helpers.assertcmd.JsonPathEqualsTest

✅ passesForNumber(Path)
✅ failsForMissingField(Path)
✅ passesForString(Path)
✅ failsForMismatch(Path)
✅ failsForNullField(Path)
✅ failsForMissingFile(Path)

✅ build/test-results/test/TEST-me.itzg.helpers.assertcmd.PropertyEqualsTest.xml

4 tests were completed in 16ms with 4 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.assertcmd.PropertyEqualsTest 4✅ 16ms

✅ me.itzg.helpers.assertcmd.PropertyEqualsTest

✅ failOnMissingProperty(Path)
✅ successOnMatch(Path)
✅ failOnMismatchProperty(Path)
✅ failOnMissingFile(Path)

✅ build/test-results/test/TEST-me.itzg.helpers.CharsetDetectorTest.xml

2 tests were completed in 61ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.CharsetDetectorTest 2✅ 61ms

✅ me.itzg.helpers.CharsetDetectorTest

✅ canDetectIso8859_1()
✅ canDetectUtf8()

✅ build/test-results/test/TEST-me.itzg.helpers.curseforge.CurseForgeApiClientTest.xml

1 tests were completed in 575ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.curseforge.CurseForgeApiClientTest 1✅ 575ms

✅ me.itzg.helpers.curseforge.CurseForgeApiClientTest

✅ apiKeyHeaderIsTrimmed(WireMockRuntimeInfo)

✅ build/test-results/test/TEST-me.itzg.helpers.curseforge.CurseForgeFilesCommandTest.xml

2 tests were completed in 350ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.curseforge.CurseForgeFilesCommandTest 2✅ 350ms

✅ me.itzg.helpers.curseforge.CurseForgeFilesCommandTest

✅ oneOfEachCategoryAndUpgrade()
✅ usingListingFile()

✅ build/test-results/test/TEST-me.itzg.helpers.curseforge.CurseForgeInstallerTest.xml

1 tests were completed in 0ms with 0 passed, 0 failed and 1 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.curseforge.CurseForgeInstallerTest 1⚪ 0ms

✅ me.itzg.helpers.curseforge.CurseForgeInstallerTest

⚪ testManual()

✅ build/test-results/test/TEST-me.itzg.helpers.curseforge.ModFileRefResolverTest.xml

5 tests were completed in 117ms with 5 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.curseforge.ModFileRefResolverTest 5✅ 117ms

✅ me.itzg.helpers.curseforge.ModFileRefResolverTest

✅ [1] 238222:4644453, null, null, null, ModFileIds(modId=238222, fileId=4644453)
✅ [2] jei:4644453, mc-mods, null, null, ModFileIds(modId=238222, fileId=4644453)
✅ [3] [email protected], mc-mods, 1.19.2, Forge, ModFileIds(modId=238222, fileId=4615177)
✅ [4] https://www.curseforge.com/minecraft/mc-mods/jei/files/4644453, null, null, null, ModFileIds(modId=238222, fileId=4644453)
✅ [5] https://www.curseforge.com/minecraft/mc-mods/jei, null, 1.20.1, Fabric, ModFileIds(modId=238222, fileId=4644452)

✅ build/test-results/test/TEST-me.itzg.helpers.env.InterpolatorTest.xml

2 tests were completed in 915ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.env.InterpolatorTest 2✅ 915ms

✅ me.itzg.helpers.env.InterpolatorTest

✅ interpolateToValueWithDollarSign()
✅ typicalReplacements()

✅ build/test-results/test/TEST-me.itzg.helpers.fabric.FabricLauncherInstallerTest.xml

7 tests were completed in 231ms with 6 passed, 0 failed and 1 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.fabric.FabricLauncherInstallerTest 6✅ 1⚪ 231ms

✅ me.itzg.helpers.fabric.FabricLauncherInstallerTest

✅ testUpgradeFromVersionToVersion(WireMockRuntimeInfo)
⚪ forRecordingVersionDiscovery()
✅ testWithLocalLauncherFile()
✅ testInstallUsingVersions_onlyGameVersion(WireMockRuntimeInfo)
✅ testSaveManifest()
✅ testWithProvidedUri_contentDisposition(WireMockRuntimeInfo)
✅ testWithProvidedUri(WireMockRuntimeInfo)

✅ build/test-results/test/TEST-me.itzg.helpers.files.AntPathMatcherTest.xml

4 tests were completed in 6ms with 4 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.files.AntPathMatcherTest 4✅ 6ms

✅ me.itzg.helpers.files.AntPathMatcherTest

✅ butNotFileSuffixInSubdir()
✅ literal()
✅ fileSuffixTopDir()
✅ fileSuffixInSubdir()

✅ build/test-results/test/TEST-me.itzg.helpers.files.ManifestsTest.xml

1 tests were completed in 26ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.files.ManifestsTest 1✅ 26ms

✅ me.itzg.helpers.files.ManifestsTest

✅ loadFailsGracefullyWhenInvalid()

✅ build/test-results/test/TEST-me.itzg.helpers.find.FindCommandTest.xml

17 tests were completed in 155ms with 17 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.find.FindCommandTest 17✅ 155ms

✅ me.itzg.helpers.find.FindCommandTest

✅ emptyWhenNoPatterns()
✅ excludesByDirectory()
✅ appliesMaxDepth()
✅ failsAsExpectedWhenNotFound()
✅ findsShallowestDir()
✅ findsFilesAndDirectories()
✅ failWhenNoArgs()
✅ findsShallowestFile()
✅ excludesByFiles()
✅ outputsCountWhenRequested()
✅ handlesMultipleStartingPoints()
✅ handlesMultipleNames()
✅ stopsOnFirstMatch()
✅ findsDirectoryType()
✅ findsDirectoriesWithinDirectories(Path)
✅ regularSuffixGlob()
✅ acceptsShortFindTypes()

✅ build/test-results/test/TEST-me.itzg.helpers.find.FindCommandTest$appliesMinDepth.xml

3 tests were completed in 13ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.find.FindCommandTest$appliesMinDepth 3✅ 13ms

✅ me.itzg.helpers.find.FindCommandTest$appliesMinDepth

✅ fileInDir()
✅ dirAtStartingPoint()
✅ defaultDepthZero()

✅ build/test-results/test/TEST-me.itzg.helpers.find.FindCommandTest$deletes.xml

6 tests were completed in 44ms with 6 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.find.FindCommandTest$deletes 6✅ 44ms

✅ me.itzg.helpers.find.FindCommandTest$deletes

✅ directories()
✅ files()
✅ keepEmptyDirectoriesWhenRequested()
✅ nothingWhenNoMatches()
✅ withExcludesByFilesInSubdir()
✅ removesEmptiedDirectoriesByDefault()

✅ build/test-results/test/TEST-me.itzg.helpers.find.FindCommandTest$formatsDirname.xml

3 tests were completed in 17ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.find.FindCommandTest$formatsDirname 3✅ 17ms

✅ me.itzg.helpers.find.FindCommandTest$formatsDirname

✅ atStartingPoint()
✅ oneLevelDeep()
✅ shallowest()

✅ build/test-results/test/TEST-me.itzg.helpers.find.FindCommandTest$formatsRelative.xml

3 tests were completed in 18ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.find.FindCommandTest$formatsRelative 3✅ 18ms

✅ me.itzg.helpers.find.FindCommandTest$formatsRelative

✅ topLevel()
✅ shallowestMultipleStartingPoints()
✅ shallowest()

✅ build/test-results/test/TEST-me.itzg.helpers.get.ExistsTest.xml

3 tests were completed in 315ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.get.ExistsTest 3✅ 315ms

✅ me.itzg.helpers.get.ExistsTest

✅ notOkWhenOneMissing()
✅ okWhenExists()
✅ includesAcceptHeader()

✅ build/test-results/test/TEST-me.itzg.helpers.get.GetCommandTest.xml

8 tests were completed in 2s with 8 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.get.GetCommandTest 8✅ 2s

✅ me.itzg.helpers.get.GetCommandTest

✅ usesGivenAcceptHeader()
✅ handlesRetryThenFails()
✅ handlesNotFound()
✅ handlesRetryOn403ThenSuccess()
✅ usesBasicAuth()
✅ handlesExtraSlashAtStartOfPath()
✅ outputsDownload()
✅ usesGivenApiKeyHeader()

✅ build/test-results/test/TEST-me.itzg.helpers.get.JsonPathTests.xml

12 tests were completed in 227ms with 12 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.get.JsonPathTests 12✅ 227ms

✅ me.itzg.helpers.get.JsonPathTests

✅ handlesMissingField_alternateValue()
✅ handlesMissingField_defaultOutputNull()
✅ stringField()
✅ handlesMissingField_errorWhenEmptyValue()
✅ booleanField()
✅ handlesMissingIntermediateField()
✅ useConcatWithListField()
✅ [1] {"values": [{"value": "v1", "name": "one"}, {"value": "v2", "name": "two"}]}, v1
✅ [2] {"values": [{"value": 1, "name": "one"}, {"value": 1, "name": "two"}]}, 1
✅ [3] {"values": [{"value": true, "name": "one"}, {"value": false, "name": "two"}]}, true
✅ handlesJqStylePath()
✅ numberField()

✅ build/test-results/test/TEST-me.itzg.helpers.get.OutputToDirTest.xml

11 tests were completed in 269ms with 11 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.get.OutputToDirTest 11✅ 269ms

✅ me.itzg.helpers.get.OutputToDirTest

✅ doesntWriteFileWhenNotFound(Path)
✅ saveFileFromGithubRelease(Path)
✅ saveFileLikeBukkit(Path)
✅ multipleUrisConcatenated(Path)
✅ combinesWithUrisFile(Path)
✅ skipsUpToDate(Path)
✅ multipleUrisSeparated(Path)
✅ skipExisting(Path)
✅ pruneDepthIsUsed(Path)
✅ prunesOthers(Path)
✅ skipExistingWithContentDisposition(Path)

✅ build/test-results/test/TEST-me.itzg.helpers.get.OutputToFileTest.xml

8 tests were completed in 135ms with 8 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.get.OutputToFileTest 8✅ 135ms

✅ me.itzg.helpers.get.OutputToFileTest

✅ skipsUpToDate_butDownloadsWhenAbsent(Path)
✅ doesNotAllowMultipleUris(Path)
✅ succeedsAcceptMatch_commaSeparated(Path)
✅ successful(Path)
✅ skipsUpToDate(Path)
✅ failsAcceptMismatch(Path)
✅ skipExisting(Path)
✅ succeedsAcceptMatch(Path)

✅ build/test-results/test/TEST-me.itzg.helpers.http.LenientUriConverterTest.xml

3 tests were completed in 3ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.http.LenientUriConverterTest 3✅ 3ms

✅ me.itzg.helpers.http.LenientUriConverterTest

✅ leavesPlusAsIs()
✅ leavesLegalUriAsIs()
✅ convertsSquareBrackets()

✅ build/test-results/test/TEST-me.itzg.helpers.http.ObjectFetchBuilderTest.xml

4 tests were completed in 23ms with 4 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.http.ObjectFetchBuilderTest 4✅ 23ms

✅ me.itzg.helpers.http.ObjectFetchBuilderTest

✅ verifyAllExpectedHeaders(WireMockRuntimeInfo)
✅ handlesNotFound(WireMockRuntimeInfo)
✅ basicScenario(WireMockRuntimeInfo)
✅ responseHasContentTypeWithCharset(WireMockRuntimeInfo)

✅ build/test-results/test/TEST-me.itzg.helpers.http.ObjectListFetchBuilderTest.xml

1 tests were completed in 5ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.http.ObjectListFetchBuilderTest 1✅ 5ms

✅ me.itzg.helpers.http.ObjectListFetchBuilderTest

✅ testBasicScenario(WireMockRuntimeInfo)

✅ build/test-results/test/TEST-me.itzg.helpers.http.OutputToDirectoryFetchBuilderTest.xml

6 tests were completed in 51ms with 6 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.http.OutputToDirectoryFetchBuilderTest 6✅ 51ms

✅ me.itzg.helpers.http.OutputToDirectoryFetchBuilderTest

✅ supportsIfModifiedSince(WireMockRuntimeInfo, Path)
✅ geyser(WireMockRuntimeInfo, Path)
✅ githubReleaseFile(WireMockRuntimeInfo, Path)
✅ geyserSkipsUpToDate(WireMockRuntimeInfo, Path)
✅ bukkitDoesNotSupportHead(WireMockRuntimeInfo, Path)
✅ basicScenario(WireMockRuntimeInfo, Path)

✅ build/test-results/test/TEST-me.itzg.helpers.http.SpecificFileFetchBuilderTest.xml

3 tests were completed in 10ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.http.SpecificFileFetchBuilderTest 3✅ 10ms

✅ me.itzg.helpers.http.SpecificFileFetchBuilderTest

✅ overwritesWhenNoConstraints(WireMockRuntimeInfo, Path)
✅ handlesNotFound(WireMockRuntimeInfo, Path)
✅ whenRequestSkipNotExists_butExists(WireMockRuntimeInfo, Path)

✅ build/test-results/test/TEST-me.itzg.helpers.modrinth.InstallModrinthModpackCommandTest.xml

5 tests were completed in 138ms with 5 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.modrinth.InstallModrinthModpackCommandTest 5✅ 138ms

✅ me.itzg.helpers.modrinth.InstallModrinthModpackCommandTest

✅ downloadsAndInstallsModrinthModpack_versionNumberAndAnyLoader(WireMockRuntimeInfo, Path)
✅ createsModrinthModpackManifestForModpackInstallation(WireMockRuntimeInfo, Path)
✅ removesFilesNoLongerNeedeByUpdatedModpack(WireMockRuntimeInfo, Path)
✅ downloadsAndInstallsGenericModpacksOverHttp(WireMockRuntimeInfo, Path)
✅ downloadsAndInstallsModrinthModpack(WireMockRuntimeInfo, Path)

✅ build/test-results/test/TEST-me.itzg.helpers.modrinth.ModrinthApiClientTest.xml

1 tests were completed in 10ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.modrinth.ModrinthApiClientTest 1✅ 10ms

✅ me.itzg.helpers.modrinth.ModrinthApiClientTest

✅ getVersionsForProject(WireMockRuntimeInfo)

✅ build/test-results/test/TEST-me.itzg.helpers.modrinth.ModrinthApiPackFetcherTest.xml

4 tests were completed in 49ms with 4 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.modrinth.ModrinthApiPackFetcherTest 4✅ 49ms

✅ me.itzg.helpers.modrinth.ModrinthApiPackFetcherTest

✅ testApiFetcherFetchesModpackBySlugAndVersionId(WireMockRuntimeInfo, Path)
✅ testApiFetcherFetchesNumberedVersions(WireMockRuntimeInfo, Path)
✅ testApiFetcherFetchesLatestModpackWhenVersionTypeSpecified(WireMockRuntimeInfo, Path)
✅ testIgnoresMissingFile(WireMockRuntimeInfo, Path)

✅ build/test-results/test/TEST-me.itzg.helpers.modrinth.ModrinthCommandTest.xml

5 tests were completed in 195ms with 5 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.modrinth.ModrinthCommandTest 5✅ 195ms

✅ me.itzg.helpers.modrinth.ModrinthCommandTest

✅ commaNewlineDelimited(Path)
✅ newlineDelimited(Path)
✅ [1] NONE
✅ [2] REQUIRED
✅ [3] OPTIONAL

✅ build/test-results/test/TEST-me.itzg.helpers.modrinth.ModrinthHttpPackFetcherTest.xml

1 tests were completed in 5ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.modrinth.ModrinthHttpPackFetcherTest 1✅ 5ms

✅ me.itzg.helpers.modrinth.ModrinthHttpPackFetcherTest

✅ fetchesMrpackViaHttp(WireMockRuntimeInfo, Path)

✅ build/test-results/test/TEST-me.itzg.helpers.modrinth.ModrinthPackInstallerTest.xml

3 tests were completed in 13ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.modrinth.ModrinthPackInstallerTest 3✅ 13ms

✅ me.itzg.helpers.modrinth.ModrinthPackInstallerTest

✅ installReturnsTheModpackIndexAndInstalledFiles(WireMockRuntimeInfo, Path)
✅ sanitizesModFilePath(WireMockRuntimeInfo, Path)
✅ installDownloadsDependentFilesToInstallation(WireMockRuntimeInfo, Path)

✅ build/test-results/test/TEST-me.itzg.helpers.modrinth.ProjectRefTest.xml

9 tests were completed in 6ms with 9 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.modrinth.ProjectRefTest 9✅ 6ms

✅ me.itzg.helpers.modrinth.ProjectRefTest

✅ fromPossibleUrlExtractsProjectSlugFromUrl()
✅ fromPossibleUrlDefaultsToGeneratingRefWithPassedValues()
✅ testProjectRefHasProjectSlug()
✅ testProjectRefHasVersionTypeWhenVersionIsType()
✅ testProjectRefHasVersionIDWhenVersionIs8CharAlphaNum()
✅ fromPossibleUrlExtractsProjectVersionFromUrlWhenPresent()
✅ testProjectRefHasVersionNameForOtherValues()
✅ ProjectRefURIConstructorPullsProjectSlugFromURI()
✅ fromPossibleUrlCreatesProjectRefWithProjectUrlWhenUrlIsNotModrinthProject()

✅ build/test-results/test/TEST-me.itzg.helpers.mvn.MavenRepoApiTest.xml

3 tests were completed in 101ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.mvn.MavenRepoApiTest 3✅ 101ms

✅ me.itzg.helpers.mvn.MavenRepoApiTest

✅ [1] false, false
✅ [2] true, false
✅ [3] true, true

✅ build/test-results/test/TEST-me.itzg.helpers.patch.PatchSetProcessorTest.xml

7 tests were completed in 72ms with 7 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.patch.PatchSetProcessorTest 7✅ 72ms

✅ me.itzg.helpers.patch.PatchSetProcessorTest

✅ setNativeTypes(Path)
✅ resolvesFileNameFromEnv(Path)
✅ setWithEnv(Path)
✅ setInJson(Path)
✅ setInToml(Path)
✅ setInYaml(Path)
✅ setInJson5(Path)

✅ build/test-results/test/TEST-me.itzg.helpers.patch.ValueTypeConverterTest.xml

17 tests were completed in 17ms with 17 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.patch.ValueTypeConverterTest 17✅ 17ms

✅ me.itzg.helpers.patch.ValueTypeConverterTest

✅ [1] int, 5, 5
✅ [2] float, 5.1, 5.1
✅ [3] bool, true, true
✅ [4] auto, 5, 5
✅ [5] auto, 5.1, 5.1
✅ [6] auto, true, true
✅ [7] auto, yes, true
✅ [8] auto, no, false
✅ [9] auto, false, false
✅ [10] auto, something else, something else
✅ [11] null, 5, 5
✅ [12] null, true, true
✅ [13] null, something else, something else
✅ [14] list of int, 5,6,7, [5, 6, 7]
✅ [15] list of float, 5.1,6.2,7.3, [5.1, 6.2, 7.3]
✅ [16] list of bool, true,yes,no,false, [true, true, false, false]
✅ [17] list of string, 5,6.2,testing,false, [5, 6.2, testing, false]

✅ build/test-results/test/TEST-me.itzg.helpers.properties.SetPropertiesCommandTest.xml

18 tests were completed in 79ms with 18 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.properties.SetPropertiesCommandTest 18✅ 79ms

✅ me.itzg.helpers.properties.SetPropertiesCommandTest

✅ simpleNeedsChange()
✅ encodesWithGivenEncoding()
✅ handlesNewCustomProperty()
✅ hasMapping()
✅ disallowedValue()
✅ removesMarkedForRemoval()
✅ handlesModifiedCustomProperties()
✅ encodesPreEscaped()
✅ [1] simple, simple
✅ [2] Running %MODPACK_NAME%, Running modpack
✅ [3] Running %env:MODPACK_NAME%, Running modpack
✅ [4] Running %MODPACK_NAME% at %MODPACK_VERSION%, Running modpack at version
✅ [5] Date is %date:yyyy-MM-dd%, Date is 2007-12-03
✅ [6] Stays %UNKNOWN%, Stays %UNKNOWN%
✅ [7] %%, %%
✅ [8] %MODPACK_NAME% and stray %, modpack and stray %
✅ [1] with-unicode.txt
✅ [2] with-escapes.txt

✅ build/test-results/test/TEST-me.itzg.helpers.singles.HashCommandTest.xml

1 tests were completed in 5ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.singles.HashCommandTest 1✅ 5ms

✅ me.itzg.helpers.singles.HashCommandTest

✅ simple()

✅ build/test-results/test/TEST-me.itzg.helpers.singles.YamlPathCmdTest.xml

1 tests were completed in 5ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.singles.YamlPathCmdTest 1✅ 5ms

✅ me.itzg.helpers.singles.YamlPathCmdTest

✅ pickOutFieldFromServerSetupConfig()

✅ build/test-results/test/TEST-me.itzg.helpers.sync.InterpolatingFileProcessorTest.xml

2 tests were completed in 49ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.sync.InterpolatingFileProcessorTest 2✅ 49ms

✅ me.itzg.helpers.sync.InterpolatingFileProcessorTest

✅ processFileEnv(Path)
✅ processFile(Path)

✅ build/test-results/test/TEST-me.itzg.helpers.sync.MulitCopyCommandTest$DirectorySrc.xml

4 tests were completed in 24ms with 4 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.sync.MulitCopyCommandTest$DirectorySrc 4✅ 24ms

✅ me.itzg.helpers.sync.MulitCopyCommandTest$DirectorySrc

✅ handlesUpdatedFile()
✅ noGlob()
✅ withGlob()
✅ managedWithManifest()

✅ build/test-results/test/TEST-me.itzg.helpers.sync.MulitCopyCommandTest$FileListingSrc.xml

1 tests were completed in 4ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.sync.MulitCopyCommandTest$FileListingSrc 1✅ 4ms

✅ me.itzg.helpers.sync.MulitCopyCommandTest$FileListingSrc

✅ justFiles()

✅ build/test-results/test/TEST-me.itzg.helpers.sync.MulitCopyCommandTest$FileSrc.xml

2 tests were completed in 6ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.sync.MulitCopyCommandTest$FileSrc 2✅ 6ms

✅ me.itzg.helpers.sync.MulitCopyCommandTest$FileSrc

✅ one()
✅ commaDelimited()

✅ build/test-results/test/TEST-me.itzg.helpers.sync.MulitCopyCommandTest$RemoteSrc.xml

3 tests were completed in 45ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.sync.MulitCopyCommandTest$RemoteSrc 3✅ 45ms

✅ me.itzg.helpers.sync.MulitCopyCommandTest$RemoteSrc

✅ listingOfRemoteFiles(WireMockRuntimeInfo)
✅ remoteListingOfRemoteFiles(WireMockRuntimeInfo)
✅ remoteFile(WireMockRuntimeInfo)

✅ build/test-results/test/TEST-me.itzg.helpers.users.ManageUsersCommandTest$file.xml

8 tests were completed in 55ms with 8 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.users.ManageUsersCommandTest$file 8✅ 55ms

✅ me.itzg.helpers.users.ManageUsersCommandTest$file

✅ [1] JAVA_WHITELIST
✅ [2] JAVA_OPS
✅ [1] JAVA_WHITELIST
✅ [2] JAVA_OPS
✅ [1] JAVA_WHITELIST
✅ [2] JAVA_OPS
✅ [1] JAVA_WHITELIST
✅ [2] JAVA_OPS

✅ build/test-results/test/TEST-me.itzg.helpers.users.ManageUsersCommandTest$ops.xml

3 tests were completed in 30ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.users.ManageUsersCommandTest$ops 3✅ 30ms

✅ me.itzg.helpers.users.ManageUsersCommandTest$ops

✅ givenNames(WireMockRuntimeInfo)
✅ givenNamesAndAllExist(WireMockRuntimeInfo)
✅ givenNamesWithExtraSpace(WireMockRuntimeInfo)

✅ build/test-results/test/TEST-me.itzg.helpers.users.ManageUsersCommandTest$whitelist.xml

9 tests were completed in 61ms with 9 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.users.ManageUsersCommandTest$whitelist 9✅ 61ms

✅ me.itzg.helpers.users.ManageUsersCommandTest$whitelist

✅ allRemoved(WireMockRuntimeInfo)
✅ givenNames(WireMockRuntimeInfo)
✅ givenNamesAndAllExist(WireMockRuntimeInfo)
✅ merge(WireMockRuntimeInfo)
✅ fromScratchGivenIdAndUuid(WireMockRuntimeInfo)
✅ skipExisting(WireMockRuntimeInfo)
✅ oneLessInList(WireMockRuntimeInfo)
✅ givenUuidsAndAllExist(WireMockRuntimeInfo)
✅ givenNameExistsInCache(WireMockRuntimeInfo)

✅ build/test-results/test/TEST-me.itzg.helpers.users.ManageUsersCommandTest$whitelistOrOpsText.xml

6 tests were completed in 42ms with 6 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.users.ManageUsersCommandTest$whitelistOrOpsText 6✅ 42ms

✅ me.itzg.helpers.users.ManageUsersCommandTest$whitelistOrOpsText

✅ [1] JAVA_WHITELIST
✅ [2] JAVA_OPS
✅ [1] JAVA_WHITELIST
✅ [2] JAVA_OPS
✅ [1] JAVA_WHITELIST
✅ [2] JAVA_OPS

✅ build/test-results/test/TEST-me.itzg.helpers.vanillatweaks.VanillaTweaksCommandTest.xml

1 tests were completed in 47ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.vanillatweaks.VanillaTweaksCommandTest 1✅ 47ms

✅ me.itzg.helpers.vanillatweaks.VanillaTweaksCommandTest

✅ testOneOfEachSharecode(WireMockRuntimeInfo, Path)

✅ build/test-results/test/TEST-me.itzg.helpers.versions.CompareVersionsCommandTest.xml

10 tests were completed in 40ms with 10 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
me.itzg.helpers.versions.CompareVersionsCommandTest 10✅ 40ms

✅ me.itzg.helpers.versions.CompareVersionsCommandTest

✅ noArgs()
✅ [1] 1.18, lt, 1.18.1, 0
✅ [2] 1.18.1, lt, 1.18.1, 1
✅ [3] 1.12.1, lt, 1.12.2, 0
✅ [4] b1.7.3, lt, 1.18, 0
✅ [5] b1.7.3, lt, b1.6, 1
✅ [6] a1.4, lt, b1.7.3, 0
✅ [7] 1.18, lt, a1.4, 1
✅ [8] 1.18.1-rc3, lt, 1.18.1, 0
✅ [9] 21w44a, lt, 1.18.1, 1