Skip to content

chore: add unit tests for dashboard utilities #69

@pavelanni

Description

@pavelanni

From PR #66 review (GLM 5.1, findings #19-20):

The dashboard package has no test files. Add unit tests for:

  • ParseTokensFromLogs — various log formats, empty input
  • parseMemory / parseCPU — edge cases: Ki, Mi, Gi, n, m, bare numbers
  • extractArtifactText — a2a-go v2 response format
  • cleanHRReport — JSON stripping, document ID extraction

These are pure functions with no external dependencies, easy to test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions