Skip to content

Improvement: Increase unit test coverage to 90% line + branch: score/TimeDaemon/ #45

@lavrovvalera

Description

@lavrovvalera

What

Reach 90% line coverage and 90% branch coverage for the score/TimeDaemon/
component.

Steps:

  1. Generate a per-component coverage report locally:
    bazel coverage --config=time-x86_64-linux //score/TimeDaemon/...
    genhtml --branch-coverage bazel-out/_coverage/_coverage_report.dat -o coverage-report/
    
  2. Identify files and branches below 90%
  3. Add missing unit tests — focus areas:
    • PTPMachine — state transitions, timeout handling, error paths
    • MessageBroker — message routing, subscriber callbacks
    • VerificationMachine — validator chain execution
    • SVT validators: TimeoutValidator, TimeJumpsValidator,
      SynchronizationValidator — boundary and error conditions
    • JobRunner — concurrent Start() / Stop() paths (race condition
      regression, fixed in PR#15)

References

Estimates for realization

M - Week

Category

  • Affects Detailed Design

Requirements / Architecture

  • Requirements / Architecture are not affected by this change?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Task.

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions