Repository navigation
0.4.1: a body returns nothing; suite types across sources; tag conjunction - #6
Merged
Merged
Conversation
…suite types across its sources Co-authored-by: speak-agent <[email protected]>
Co-authored-by: speak-agent <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
body's constructor requires a callable whose result isvoid, and the suite types andvalues | fstate the same with astatic_assert. A case ends at its end, atreturn;, atskip()or atfail(). Before, a value-returning lambda was accepted and its value discarded; amainconverted to an object's body keptif (!x) return 1;and fell off the end of a non-void lambda (undefined behaviour, aSIGILLunder clang).manifest::types_of(sources)returns the types a set of sources declares (a type deriving from a type of another source included), andscan(source, types)reads a file's cases with them.mtest list --staticreads the types of every C++ source of the project first, so a type written once in a module that the tests import (class Fixture : public CTSinfixture.cppm) is its base's kind in every file that uses it.a&bnames the cases that have both tags (--tag 'on:linux-x64&release', and a set'stags); the tags given stay alternatives, and a case has its program's tags as well as its own. A project that tags its cases by platform and by purpose selects one purpose on one platform.docs/layout.mdstates both rules.Tests
lib/tests/suites.cpp:bodyis constructible fromvoid()and not fromint().manifest/tests/manifest.cpp: a type in another source, one derived from it, and the absence of cases when the type is unknown.engine/tests/engine.cpp:list --staticreads aBench-derived type declared in a module beside the tests;--tag 'a&b'selects the case with both tags and none when no case has both.mcpp testpasses formcpplibs.mtest,mcpplibs.mtest.manifest,mtest.mtestandconformance.Co-authored-by: speak-agent [email protected]