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

samsmithnz / SatisfactoryTree / 14730547494

29 Apr 2025 11:52AM UTC coverage: 36.569%. Remained the same
14730547494

push

github

web-flow
Merge pull request #213 from samsmithnz/dependabot/nuget/src/SatisfactoryTree.Tests/tests-15d9c0f90e

Bump MermaidDotNet from 0.7.4 to 0.7.5 in /src/SatisfactoryTree.Tests in the tests group

431 of 585 branches covered (73.68%)

Branch coverage included in aggregate %.

1076 of 3536 relevant lines covered (30.43%)

2622.38 hits per line

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

0.0
/src/SatisfactoryTree/DataAccess/FileContent.cs
1
using Newtonsoft.Json;
2
using SatisfactoryTree.Models;
3

4
namespace SatisfactoryTree.DataAccess
5
{
6
    public class FileContent
7
    {
8
        // Load the json file
9
        public static NewContent LoadJsonContent()
10
        {
×
11
            DirectoryInfo? currentDir = new(Directory.GetCurrentDirectory());
×
12
            DirectoryInfo? parentDir = currentDir.Parent?.Parent?.Parent?.Parent?.Parent;
×
13
            if (parentDir == null)
×
14
            {
×
15
                throw new Exception("Parent directory structure is not as expected.");
×
16
            }
17
            string projectContentPath = Path.Combine(parentDir.FullName, "content");
×
18
            string path = Path.Combine(projectContentPath, "output.json");
×
19
            string jsonString = File.ReadAllText(path);
×
20
            NewContent newContent = JsonConvert.DeserializeObject<NewContent>(jsonString);
×
21
            return newContent;
×
22
        }
×
23
    }
24
}
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

© 2025 Coveralls, Inc