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

curt / Viae / 19527137380

20 Nov 2025 05:53AM UTC coverage: 51.56%. First build
19527137380

push

github

web-flow
feat: provide minimal locus and vestigium views (#1)

62 of 109 branches covered (56.88%)

Branch coverage included in aggregate %.

500 of 981 new or added lines in 61 files covered. (50.97%)

500 of 981 relevant lines covered (50.97%)

19.89 hits per line

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

0.0
/endpoint/src/Viae.Persistence/PostgresConfigurationValidator.cs
1
// Copyright © 2025 Curt Gilman
2
// SPDX-License-Identifier: AGPL-3.0-only
3
// Viae: A geo-centric, journey-focused, federated blog platform
4

5
using FluentValidation;
6

7
namespace Viae.Persistence;
8

9
/// <summary>
10
/// Validator for PostgresConfiguration.
11
/// </summary>
12
public sealed class PostgresConfigurationValidator : AbstractValidator<PostgresConfiguration>
13
{
14
    /// <summary>
15
    /// Initializes a new instance of the <see cref="PostgresConfigurationValidator"/> class.
16
    /// </summary>
NEW
17
    public PostgresConfigurationValidator()
×
18
    {
NEW
19
        RuleFor(x => x.Host).NotEmpty().WithMessage("Postgres:Host is required.");
×
20

NEW
21
        RuleFor(x => x.Port)
×
NEW
22
            .InclusiveBetween(1, 65535)
×
NEW
23
            .WithMessage("Postgres:Port must be between 1 and 65535.");
×
24

NEW
25
        RuleFor(x => x.Database).NotEmpty().WithMessage("Postgres:Database is required.");
×
26

NEW
27
        RuleFor(x => x.Username).NotEmpty().WithMessage("Postgres:Username is required.");
×
28

NEW
29
        RuleFor(x => x.Password).NotEmpty().WithMessage("Postgres:Password is required.");
×
NEW
30
    }
×
31
}
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