Skip to content

Improvement: Increase unit test coverage to 90% line + branch: score/TimeSlave/ #46

@lavrovvalera

Description

@lavrovvalera

What

Reach 90% line coverage and 90% branch coverage for the score/TimeSlave/
component once its implementation is available (see epic
eclipse-score/score#2691).

Steps:

  1. Generate a per-component coverage report locally:
    bazel coverage --config=time-x86_64-linux //score/TimeSlave/...
    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:
    • IPC channel (libTSClient) — connection, disconnection, error paths
    • PTP sync loop — synchronization state transitions
    • clock_adjtime / clock_settime integration — stub/mock the syscall
    • TimeSlave process lifecycle — start, stop, restart

References

Depends on

TimeSlave implementation (eclipse-score/score#2691) must be sufficiently
complete before this task can begin.

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