• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

MeltyPlayer / MeltyTool / 28220998723

26 Jun 2026 06:19AM UTC coverage: 40.975% (-0.1%) from 41.112%
28220998723

push

github

MeltyPlayer
Updated MarioArtist goldens.

7326 of 19830 branches covered (36.94%)

Branch coverage included in aggregate %.

30582 of 72686 relevant lines covered (42.07%)

59979.76 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/FinModelUtility/UniversalAssetTool/UniversalAssetTool/src/common/FileTreeViewInterfaces.cs
1
using System.Drawing;
2

3
using fin.io.bundles;
4

5
namespace uni.ui.winforms.common.fileTreeView;
6

7
public interface IFileTreeView {
8
  public delegate void FileSelectedHandler(IFileTreeLeafNode fileNode);
9

10
  event FileSelectedHandler FileSelected;
11

12

13
  public delegate void DirectorySelectedHandler(
14
      IFileTreeParentNode directoryNode);
15

16
  event DirectorySelectedHandler DirectorySelected;
17

18
  Image GetImageForFile(IFileBundle file);
19
}
20

21
public interface IFileTreeNode {
22
  string Text { get; }
23
  IFileTreeParentNode? Parent { get; }
24
}
25

26
public interface IFileTreeParentNode : IFileTreeNode {
27
  IEnumerable<IFileTreeNode> ChildNodes { get; }
28

29
  IEnumerable<IFileBundle> GetFiles(bool recursive) {
×
30
    var children = this.ChildNodes.OfType<IFileTreeLeafNode>()
×
31
                       .Select(fileNode => fileNode.File);
×
32
    return !recursive
×
33
        ? children
×
34
        : children.Concat(
×
35
            this.ChildNodes
×
36
                .OfType<IFileTreeParentNode>()
×
37
                .SelectMany(parentNode
×
38
                                => parentNode
×
39
                                    .GetFiles(
×
40
                                        true)));
×
41
  }
×
42

43
  IEnumerable<TSpecificFile> GetFilesOfType<
44
      TSpecificFile>(bool recursive) where TSpecificFile : IFileBundle
45
    => this.GetFiles(recursive).OfType<TSpecificFile>();
×
46
}
47

48
public interface IFileTreeLeafNode : IFileTreeNode {
49
  IFileBundle File { get; }
50
}
51

52
public static class FileTreeExtensions {
53
  public static string GetLocalPath(this IFileTreeNode node) {
×
54
    var localPath = "";
×
55
    while (node != null) {
×
56
      localPath = node is IFileTreeLeafNode
×
57
          ? node.Text
×
58
          : $"{node.Text}/{localPath}";
×
59

60
      node = node.Parent;
×
61
    }
×
62

63
    return $"//{localPath}";
×
64
  }
×
65
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc