< Summary

Information
Class: OpenAiIntegration.PromptsFileProvider
Assembly: OpenAiIntegration
File(s): /home/runner/work/KicktippAi/KicktippAi/src/OpenAiIntegration/PromptsFileProvider.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 17
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
Create()100%11100%

File(s)

/home/runner/work/KicktippAi/KicktippAi/src/OpenAiIntegration/PromptsFileProvider.cs

#LineLine coverage
 1using EHonda.KicktippAi.Core;
 2using Microsoft.Extensions.FileProviders;
 3
 4namespace OpenAiIntegration;
 5
 6/// <summary>
 7/// Factory for creating an IFileProvider rooted at the prompts directory
 8/// </summary>
 9public static class PromptsFileProvider
 10{
 11    /// <summary>
 12    /// Creates a PhysicalFileProvider rooted at the prompts directory by finding the solution root
 13    /// </summary>
 14    /// <returns>An IFileProvider rooted at the prompts directory</returns>
 15    /// <exception cref="DirectoryNotFoundException">Thrown when the solution root cannot be found</exception>
 116    public static IFileProvider Create() => SolutionRelativeFileProvider.Create("prompts");
 17}

Methods/Properties

Create()