Skip to content

concoredocker.java has zero test coverage for read/write/unchanged/initVal API #464

@avinxshKD

Description

@avinxshKD

TestLiteralEval.java only tests the literalEval() parser. The actual API methods... read(), write(), unchanged(), initVal(), have no tests at all.

This means there's no verification that:

  • write() produces a correctly formatted file ([simtime+delta, val1, val2, ...])

  • read() parses it back and strips simtime from the returned data

  • unchanged() returns true when data hasn't changed and false after a new write

  • simtime advances correctly across iterations when delta is applied

  • initVal() correctly extracts simtime and returns remaining values

to be added: a new TestConcoredockerApi.java that exercises the file-based IPC path using temp directories:

  • Write to a file, read it back, assert data roundtrips correctly

  • Run multiple write- read iterations, assert simtime advances with delta

  • Verify unchanged() state transitions with real file content

  • Verify initVal() parsing and simtime extraction

  • Confirm output files match the Python wire format ([simtime, ...])

Builds on top of #463 (once methods are accessible).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions