Add test coverage

This commit is contained in:
Dean Herbert
2020-05-14 19:05:35 +09:00
parent 4e4a779d68
commit a582611647
3 changed files with 46 additions and 6 deletions

View File

@ -29,10 +29,10 @@ namespace osu.Game.Overlays.Settings.Sections.Maintenance
public override bool HideOverlaysOnEnter => true;
[BackgroundDependencyLoader]
[BackgroundDependencyLoader(true)]
private void load(OsuGame game, Storage storage, OsuColour colours)
{
game.Toolbar.Hide();
game?.Toolbar.Hide();
// begin selection in the parent directory of the current storage location
var initialPath = new DirectoryInfo(storage.GetFullPath(string.Empty)).Parent?.FullName;
@ -115,12 +115,14 @@ namespace osu.Game.Overlays.Settings.Sections.Maintenance
}
catch (Exception e)
{
Logger.Log($"Error during migration: {e?.Message}", level: LogLevel.Error);
Logger.Log($"Error during migration: {e.Message}", level: LogLevel.Error);
return;
}
ValidForResume = false;
this.Push(new MigrationRunScreen(target));
BeginMigration(target);
}
protected virtual void BeginMigration(DirectoryInfo target) => this.Push(new MigrationRunScreen(target));
}
}