Skip to content

add unit test coverage for worker managers (Statistics/Serialization/Pause) #4835

Closed

Description

@aglinxinyuan

Add a focused WorkerManagersSpec covering the worker-side state managers under amber/.../worker and amber/.../worker/managers:

  • StatisticsManager — defaults, per-port input/output count+size accumulation, negative-size rejection, processing-time accumulation, idleTime = total - data - control, current-time-before-start rejection
  • SerializationManager.registerSerialization / applySerialization — no-op without callback, single-fire then clear, latest-overwrites-previous
  • PauseManager — initial isPaused, global pause disables all data channels (control channels untouched), resume reactivates when no pauses remain, multi-pause aggregation (resume keeps paused if other global pause active), specific-channel pause/resume layered with global pauses

EmbeddedControlMessageManager is intentionally not covered here — it requires the full InputManager + ECM infrastructure and is best exercised by an integration test.

Priority

P3 - Low

Task Type

  • Testing / QA

Activity

  1. changed the title [-]test(amber): add unit test coverage for worker managers (Statistics/Serialization/Pause)[/-] [+]add unit test coverage for worker managers (Statistics/Serialization/Pause)[/+] on May 3, 2026
  2. added theissue type on May 3, 2026
  3. added a commit that references this issue on May 3, 2026
    cc37ee7
  4. added a commit that references this issue on Jun 22, 2026
    18c0dc1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions