1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 09:32:55 +08:00

test: add coverage for Player{Avatar,Flag}

This commit is contained in:
tsrk 2023-03-05 23:46:51 +00:00
parent 07bde4990d
commit ddee6400df
No known key found for this signature in database
GPG Key ID: EBD46BB3049B56D6
2 changed files with 6 additions and 1 deletions

View File

@ -9,6 +9,7 @@ using osu.Framework.Audio.Sample;
using osu.Framework.Bindables;
using osu.Framework.Graphics.Textures;
using osu.Framework.IO.Stores;
using osu.Framework.Logging;
using osu.Game.Audio;
using osu.Game.IO;
using osu.Game.IO.Archives;
@ -48,7 +49,9 @@ namespace osu.Game.Tests.Skins
// Covers BPM counter.
"Archives/modified-default-20221205.osk",
// Covers judgement counter.
"Archives/modified-default-20230117.osk"
"Archives/modified-default-20230117.osk",
// Covers player avatar and flag.
"Archives/modified-argon-20230305.osk",
};
/// <summary>
@ -61,6 +64,8 @@ namespace osu.Game.Tests.Skins
foreach (string oskFile in available_skins)
{
Logger.Log($"Testing file {oskFile}...");
using (var stream = TestResources.OpenResource(oskFile))
using (var storage = new ZipArchiveReader(stream))
{