From 6c7aaf758f50fcd9a61f54227eeffe6afab90e7a Mon Sep 17 00:00:00 2001 From: Eduardo Assis Date: Sat, 25 Jan 2025 17:42:46 -0300 Subject: [PATCH] test: update report --- GodotEnv.Tests/reports/branch_coverage.svg | 4 +- GodotEnv.Tests/reports/line_coverage.svg | 4 +- GodotEnv.Tests/reports/method_coverage.svg | 4 +- GodotEnv/src/common/utilities/SystemInfo.cs | 2 - .../features/godot/domain/GodotRepository.cs | 9 ---- .../features/godot/models/GodotEnvironment.cs | 43 ------------------- 6 files changed, 6 insertions(+), 60 deletions(-) diff --git a/GodotEnv.Tests/reports/branch_coverage.svg b/GodotEnv.Tests/reports/branch_coverage.svg index 7234092..15ae82f 100644 --- a/GodotEnv.Tests/reports/branch_coverage.svg +++ b/GodotEnv.Tests/reports/branch_coverage.svg @@ -94,14 +94,14 @@ - Generated by: ReportGenerator 5.1.26.0 + Generated by: ReportGenerator 5.2.0.0 Coverage Coverage - 43.2%43.2% + 44.3%44.3% diff --git a/GodotEnv.Tests/reports/line_coverage.svg b/GodotEnv.Tests/reports/line_coverage.svg index 5a97d0b..c9e135d 100644 --- a/GodotEnv.Tests/reports/line_coverage.svg +++ b/GodotEnv.Tests/reports/line_coverage.svg @@ -94,13 +94,13 @@ - Generated by: ReportGenerator 5.1.26.0 + Generated by: ReportGenerator 5.2.0.0 Coverage Coverage - 47.9%47.9% + 49.2%49.2% diff --git a/GodotEnv.Tests/reports/method_coverage.svg b/GodotEnv.Tests/reports/method_coverage.svg index 3548a17..c3c2476 100644 --- a/GodotEnv.Tests/reports/method_coverage.svg +++ b/GodotEnv.Tests/reports/method_coverage.svg @@ -94,7 +94,7 @@ - Generated by: ReportGenerator 5.1.26.0 + Generated by: ReportGenerator 5.2.0.0 @@ -102,7 +102,7 @@ Coverage - 55.9%55.9% + 57.8%57.8% diff --git a/GodotEnv/src/common/utilities/SystemInfo.cs b/GodotEnv/src/common/utilities/SystemInfo.cs index 3d1e6ae..8db9b05 100644 --- a/GodotEnv/src/common/utilities/SystemInfo.cs +++ b/GodotEnv/src/common/utilities/SystemInfo.cs @@ -29,8 +29,6 @@ public OSType OS { : OSType.Unknown; } - // public OSFamily OsFamily { get; } - public CPUArch CPUArch => CPUArchProxy switch { Architecture.X64 => CPUArch.X64, Architecture.X86 => CPUArch.X86, diff --git a/GodotEnv/src/features/godot/domain/GodotRepository.cs b/GodotEnv/src/features/godot/domain/GodotRepository.cs index 363b768..0e452a2 100644 --- a/GodotEnv/src/features/godot/domain/GodotRepository.cs +++ b/GodotEnv/src/features/godot/domain/GodotRepository.cs @@ -491,15 +491,6 @@ [Desktop Entry] var commonStartMenuPath = Environment.GetFolderPath(Environment.SpecialFolder.StartMenu); var applicationsPath = FileClient.Combine(commonStartMenuPath, "Programs", "Godot.lnk"); - // if (FileClient.FileExists(hardLinkPath)) { - // await FileClient.DeleteFile(hardLinkPath); - // } - - // await FileClient.CreateSymlink(hardLinkPath, installation.ExecutionPath); - // await FileClient.ProcessRunner.RunElevatedOnWindows( - // "cmd.exe", $"/c mklink /H \"{hardLinkPath}\" \"{installation.ExecutionPath}\"" - // ); - var command = string.Join(";", "$ws = New-Object -ComObject (\"WScript.Shell\")", $"$s = $ws.CreateShortcut(\"{applicationsPath}\")", diff --git a/GodotEnv/src/features/godot/models/GodotEnvironment.cs b/GodotEnv/src/features/godot/models/GodotEnvironment.cs index ffe4822..1842c63 100644 --- a/GodotEnv/src/features/godot/models/GodotEnvironment.cs +++ b/GodotEnv/src/features/godot/models/GodotEnvironment.cs @@ -18,15 +18,6 @@ public interface IGodotEnvironment { IComputer Computer { get; } - // /// The operating system family. - // OSFamily OSFamily { get; } - - // /// The operating system type. - // OSType OS { get; } - - // /// The process architecture type. - // CPUArch CPUArch { get; } - /// /// Godot export template installation directory base path on the local /// machine. @@ -136,10 +127,6 @@ public abstract class GodotEnvironment : IGodotEnvironment { public const string GODOT_URL_PREFIX = "https://github.com/godotengine/godot-builds/releases/download/"; - // public OSFamily OSFamily { get; } - // public OSType OS { get; } - // public CPUArch CPUArch { get; } - /// /// Creates a platform for the given OS. /// @@ -161,24 +148,6 @@ protected GodotEnvironment(ISystemInfo systemInfo, IFileClient fileClient, IComp SystemInfo = systemInfo; FileClient = fileClient; Computer = computer; - - // OS = IsOSPlatform(OSPlatform.OSX) - // ? OSType.MacOS - // : IsOSPlatform(OSPlatform.Linux) - // ? OSType.Linux - // : IsOSPlatform(OSPlatform.Windows) - // ? OSType.Windows - // : OSType.Unknown; - - // OSFamily = OS == OSType.Windows ? OSFamily.Windows : OSFamily.Unix; - - // CPUArch = RuntimeInformation.ProcessArchitecture switch { - // Architecture.X64 => CPUArch.X64, - // Architecture.X86 => CPUArch.X86, - // Architecture.Arm64 => CPUArch.Arm64, - // Architecture.Arm => CPUArch.Arm, - // _ => CPUArch.Other, - // }; } public ISystemInfo SystemInfo { get; } @@ -356,16 +325,4 @@ private static string GetExportTemplatesInstallerFilename( private static InvalidOperationException GetUnknownOSException() => new("🚨 Cannot create a platform an unknown operating system."); - // public static Func IsOSPlatformDefault { get; } = - // RuntimeInformation.IsOSPlatform; - - // public static Func IsOSPlatform { get; set; } = - // IsOSPlatformDefault; - - // public static Architecture CPUArchDefault { get; } = - // RuntimeInformation.ProcessArchitecture; - - // public static Architecture ProcessorArchitecture { get; set; } = - // CPUArchDefault; - }