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

abatar1 / Environment.Setup / 16710570663

03 Aug 2025 11:24PM UTC coverage: 52.846% (-0.4%) from 53.279%
16710570663

push

github

abatar1
refactor: update EnvironmentFileReader and FromFile method to support separate file name and path parameters

8 of 22 branches covered (36.36%)

Branch coverage included in aggregate %.

0 of 5 new or added lines in 2 files covered. (0.0%)

57 of 101 relevant lines covered (56.44%)

1.55 hits per line

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

0.0
/src/Environment.Setup/Read.cs
1
namespace Environment.Setup;
2

3
/// <summary>
4
/// Provides utility methods for accessing environment settings from different sources such as files or environment variables.
5
/// </summary>
6
public static class Read
7
{
8
    /// <summary>
9
    /// Reads environment settings from a specified file and returns an environment reader instance.
10
    /// </summary>
11
    /// <param name="name">The name of the environment configuration file to be read.</param>
12
    /// <param name="filePath">The directory path where the configuration file is located.</param>
13
    /// <returns>An instance of <see cref="IEnvironmentReader"/> to read the environment configuration from the specified file.</returns>
14
    public static IEnvironmentReader FromFile(string name, string filePath)
15
    {
NEW
16
        return new EnvironmentFileReader(name, filePath);
×
17
    }
18

19
    /// <summary>
20
    /// Reads environment settings from a specified environment variable and returns an environment reader instance.
21
    /// </summary>
22
    /// <param name="environmentVariableName">The name of the environment variable containing configuration values.</param>
23
    /// <returns>An instance of <see cref="IEnvironmentReader"/> to read the environment configuration from the specified environment variable.</returns>
24
    public static IEnvironmentReader FromVariable(string environmentVariableName)
25
    {
26
        return new EnvironmentVariableReader(environmentVariableName);
×
27
    }
28
}
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