Skip to content

Commit

Permalink
test: exclude CommandsService and DIalogService from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
jonisavo committed Jul 4, 2023
1 parent 9845d90 commit c628c30
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using LibGit2Sharp;
using UnityEngine.TestTools;

namespace UnityGit.Core.Services
{
Expand All @@ -12,6 +13,7 @@ public interface ICommandsService
}

/// <summary>Acts as a wrapper for LibGit2Sharp.Commands.</summary>
[ExcludeFromCoverage]
public class CommandsService : ICommandsService
{
public Branch Checkout(IRepository repository, Branch branch)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using UnityEditor;
using UnityEngine.TestTools;

namespace UnityGit.Core.Services
{
Expand All @@ -10,6 +11,7 @@ public interface IDialogService
}

/// <summary>Acts as a wrapper for Unity's EditorUtility.DisplayDialog method.</summary>
[ExcludeFromCoverage]
public sealed class DialogService : IDialogService
{
public bool Confirm(string message)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public interface IProgressService
public void FinishWithError(int progressId, string message);
}

/// <summary>Acts as a wrapper for Unity's Progress API.</summary>
public sealed class ProgressService : IProgressService
{
public int Start(string name, string description, ProgressOptions options)
Expand Down

0 comments on commit c628c30

Please sign in to comment.