Skip to content

Commit

Permalink
test: update report
Browse files Browse the repository at this point in the history
  • Loading branch information
edassis committed Jan 25, 2025
1 parent 3e0bc27 commit 6c7aaf7
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 60 deletions.
4 changes: 2 additions & 2 deletions GodotEnv.Tests/reports/branch_coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions GodotEnv.Tests/reports/line_coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions GodotEnv.Tests/reports/method_coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions GodotEnv/src/common/utilities/SystemInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
9 changes: 0 additions & 9 deletions GodotEnv/src/features/godot/domain/GodotRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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}\")",
Expand Down
43 changes: 0 additions & 43 deletions GodotEnv/src/features/godot/models/GodotEnvironment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,6 @@ public interface IGodotEnvironment {

IComputer Computer { get; }

// /// <summary>The operating system family.</summary>
// OSFamily OSFamily { get; }

// /// <summary>The operating system type.</summary>
// OSType OS { get; }

// /// <summary>The process architecture type.</summary>
// CPUArch CPUArch { get; }

/// <summary>
/// Godot export template installation directory base path on the local
/// machine.
Expand Down Expand Up @@ -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; }

/// <summary>
/// Creates a platform for the given OS.
/// </summary>
Expand All @@ -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; }
Expand Down Expand Up @@ -356,16 +325,4 @@ private static string GetExportTemplatesInstallerFilename(
private static InvalidOperationException GetUnknownOSException() =>
new("🚨 Cannot create a platform an unknown operating system.");

// public static Func<OSPlatform, bool> IsOSPlatformDefault { get; } =
// RuntimeInformation.IsOSPlatform;

// public static Func<OSPlatform, bool> IsOSPlatform { get; set; } =
// IsOSPlatformDefault;

// public static Architecture CPUArchDefault { get; } =
// RuntimeInformation.ProcessArchitecture;

// public static Architecture ProcessorArchitecture { get; set; } =
// CPUArchDefault;

}

0 comments on commit 6c7aaf7

Please sign in to comment.