Skip to content

SpecLab v0.4.0

Latest

Choose a tag to compare

@github-actions github-actions released this 20 Sep 19:27
· 1 commit to develop since this release
d85c1f7

SpecLab v0.4.0

A minor release: it adds a public overload. Every call that compiled against 0.3.0 still
compiles, but speclab::Test<State> is now an overload set rather than a single function, so
naming it without calling it - &speclab::Test<MyState>, or binding it to auto - no longer
deduces and needs an explicit function type. No in-tree code did that, and MduX does not either.

Added

  • speclab::Test<State>(id) is now its own overload, and StatefulTestBuilder gained a
    constructor that builds the shared state in place. A State that is neither copyable nor
    movable - one holding an RAII handle such as a scoped temporary directory, a file handle or a
    lock - can now be used (#32). Previously the single factory's State initial = State{} default
    argument was materialised and then moved, so the state had to be movable even in the form that
    only ever default-constructs it. The two-argument Test<State>(id, initial) keeps its by-value
    parameter, where moving is unavoidable.
  • A self-test with a deliberately immovable state, which fails to compile without the overload.

Important

SpecLab is an experimental project. Its compliance features are conceptual and educational: using it does not make software compliant with IEC 62304, ISO 13485 or ISO 14971, and it is not recommended for production use.

Release tags are immutable. v0.4.0 points at d85c1f7 and will not be moved. Each package has a matching SHA-256 checksum file. The packages were built by this workflow run.