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

me-viper / OpaDotNet / 11512106788

25 Oct 2024 04:51AM UTC coverage: 84.386%. Remained the same
11512106788

push

github

me-viper
ci: Add CI inputs

1820 of 2364 branches covered (76.99%)

Branch coverage included in aggregate %.

3817 of 4316 relevant lines covered (88.44%)

1737.21 hits per line

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

28.57
/src/Extensions.AspNetCore/src/CoreImportsAbi.cs
1
using Microsoft.Extensions.Logging.Abstractions;
2

3
using OpaDotNet.Wasm;
4

5
namespace OpaDotNet.Extensions.AspNetCore;
6

7
public class CoreImportsAbi(ILogger<CoreImportsAbi> logger, TimeProvider timeProvider) : DefaultOpaImportsAbi
530✔
8
{
9
    internal CoreImportsAbi() : this(NullLogger<CoreImportsAbi>.Instance, TimeProvider.System)
×
10
    {
11
    }
×
12

13
    protected override DateTimeOffset Now() => timeProvider.GetUtcNow();
×
14

15
    public override void Print(IEnumerable<string> args) => logger.LogDebug("{Message}", string.Join(", ", args));
2✔
16

17
    protected override bool OnError(BuiltinContext context, Exception ex)
18
    {
19
        logger.LogError(ex, "Failed to evaluate {Function}", context.FunctionName);
×
20
        return base.OnError(context, ex);
×
21
    }
22
}
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