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

Aldaviva / SunsUpStreamsUp / 19431701105

17 Nov 2025 01:42PM UTC coverage: 81.208% (+1.1%) from 80.105%
19431701105

push

github

Aldaviva
Update tests

46 of 61 branches covered (75.41%)

121 of 149 relevant lines covered (81.21%)

14.54 hits per line

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

0.0
/SunsUpStreamsUp/Program.cs
1
using NodaTime;
2
using RuntimeUpgrade.Notifier;
3
using RuntimeUpgrade.Notifier.Data;
4
using SunsUpStreamsUp;
5
using SunsUpStreamsUp.Logic;
6
using SunsUpStreamsUp.Options;
7
using Unfucked.DI;
8
using Unfucked.OBS;
9

10
HostApplicationBuilder builder = Host.CreateApplicationBuilder(args);
×
11

12
builder.Configuration.AlsoSearchForJsonFilesInExecutableDirectory();
×
13

14
builder.Logging.AddUnfuckedConsole(options => options.Color = true);
×
15

16
builder.Services
×
17
    .Configure<StreamOptions>(builder.Configuration.GetSection("stream"))
×
18
    .Configure<GeographicOptions>(builder.Configuration.GetSection("geography"))
×
19
    .AddHostedService<StreamManager>()
×
20
    .AddHostedService<SolarEventEmitterImpl>(SuperRegistration.INTERFACES)
×
21
    .AddSingleton<IClock>(SystemClock.Instance)
×
22
    .AddSingleton<IObsClientFactory, ObsClientFactory>()
×
23
    .AddSingleton(TimeProvider.System);
×
24

25
using IHost host = builder.Build();
×
26

27
using RuntimeUpgradeNotifier upgradeNotifier = new() {
×
28
    LoggerFactory   = host.Services.GetRequiredService<ILoggerFactory>(),
×
29
    RestartStrategy = RestartStrategy.AutoRestartProcess,
×
30
    ExitStrategy    = new HostedLifetimeExit(host)
×
31
};
×
32

33
try {
34
    await host.RunAsync();
×
35
    return 0;
×
36
} catch (ObsFailedToConnect) {
×
37
    return 1;
×
38
}
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