![]() |
lingua-franca 0.10.1
Lingua Franca code generator
|
Collection of unit tests to ensure validation is done correctly. More...
Public Member Functions | |
| void | afterBreaksCycle () throws Exception |
| Let cyclic dependencies be broken by "after" clauses. | |
| void | afterBreaksCycle2 () throws Exception |
| Let cyclic dependencies be broken by "after" clauses with zero delay. | |
| void | afterBreaksCycle3 () throws Exception |
| Let cyclic dependencies be broken by "after" clauses with zero delay and no units. | |
| void | checkCargoDependencyProperty () throws Exception |
| void | checkPlatformProperty () throws Exception |
| Collection< DynamicTest > | checkTargetProperties () throws Exception |
| Perform checks on target properties. | |
| void | connectionToEffectPort () throws Exception |
| Disallow connection to port that is effect of reaction. | |
| void | connectionToEffectPort2 () throws Exception |
| Disallow connection to port that is effect of reaction. | |
| void | connectionToEffectPort3 () throws Exception |
| Allow connection to the port of a contained reactor if another port with same name is effect of a reaction. | |
| void | connectionToEffectPort3_5 () throws Exception |
| Allow connection to the port of a contained reactor if another port with same name is effect of a reaction. | |
| void | connectionToEffectPort4 () throws Exception |
| Disallow connection to the port of a contained reactor if the same port is effect of a reaction. | |
| void | detectCausalityLoop () throws Exception |
| Detect causality loop. | |
| void | detectInstantiationCycle () throws Exception |
| Detect cycles in the instantiation graph. | |
| void | detectInstantiationCycle2 () throws Exception |
| Detect cycles in the instantiation graph. | |
| void | disallowBraceInitialization (String target) throws Exception |
| void | disallowMainWithDifferentNameThanFile () throws Exception |
| void | disallowParenthesisInitialization (String target) throws Exception |
| void | disallowReactorCalledPreamble () throws Exception |
| Check that reactors in C++ cannot be named preamble. | |
| void | disallowUnderscoreActions () throws Exception |
| Ensure that "__" is not allowed at the start of an action name. | |
| void | disallowUnderscoreInputs () throws Exception |
| Ensure that "__" is not allowed at the start of an input name. | |
| void | disallowUnderscoreOutputs () throws Exception |
| Ensure that "__" is not allowed at the start of an output name. | |
| void | disallowUnderscoreParameters () throws Exception |
| Ensure that "__" is not allowed at the start of a parameter name. | |
| void | disallowUnderscoreReactorDef () throws Exception |
| Ensure that "__" is not allowed at the start of a reactor definition name. | |
| void | disallowUnderscoreReactorInstantiation () throws Exception |
| Ensure that "__" is not allowed at the start of a reactor instantiation name. | |
| void | disallowUnderscoreStates () throws Exception |
| Ensure that "__" is not allowed at the start of an state name. | |
| void | disallowUnderscoreTimers () throws Exception |
| Ensure that "__" is not allowed at the start of a timer name. | |
| void | duplicateVariable () throws Exception |
| Ensure that duplicate identifiers for actions reported. | |
| void | missingTrigger () throws Exception |
| Report missing trigger. | |
| void | multipleConnectionsToInputTest () throws Exception |
| Disallow connection of multiple ports to the same input port. | |
| void | multipleLabels () throws Exception |
| Assert no issues when multiple labels are used. | |
| void | nonzeroAfterMustHaveUnits () throws Exception |
| Detect missing units in "after" clauses with delay greater than zero. | |
| void | nonZeroTimeValueWithoutUnits () throws Exception |
| Report non-zero time value without units. | |
| void | noSemicolonIfNotAmbiguous () throws Exception |
| void | overflowingAssignmentC () throws Exception |
| Report overflowing assignment. | |
| void | overflowingDeadlineC () throws Exception |
| Report overflowing deadline. | |
| void | overflowingParameterC () throws Exception |
| Report overflowing parameter. | |
| void | parameterTypeMismatch () throws Exception |
| Report reference to non-time parameter in time argument. | |
| void | recognizeHostNames () throws Exception |
| Recognize valid host names and fully qualified names, report invalid ones. | |
| void | recognizeIPV4 () throws Exception |
| Recognize valid IPV4 addresses, report invalid ones. | |
| void | recognizeIPV6 () throws Exception |
| Recognize valid IPV6 addresses, report invalid ones. | |
| void | requireSemicolonIfAmbiguous () throws Exception |
| void | stateAndParameterDeclarationsInC () throws Exception |
| Tests for state and parameter declarations, including native lists. | |
| void | targetCodeInTimeArgument () throws Exception |
| Report inappropriate literal in time argument. | |
| void | testCppMutableInput () throws Exception |
| void | testFederatedHasInput () throws Exception |
| void | testFederatedHasOutput () throws Exception |
| void | testFederationSupport () throws Exception |
| void | testImportedCyclicReactor () throws Exception |
| void | testInheritanceSupport () throws Exception |
| void | testInitialMode () throws Exception |
| void | testInitialModes () throws Exception |
| void | testInvalidTargetParam () throws Exception |
| void | testMainHasInput () throws Exception |
| void | testMainHasOutput () throws Exception |
| void | testMainReactorHasHost () throws Exception |
| void | testMissingInputType () throws Exception |
| void | testMissingModeStateReset () throws Exception |
| void | testMissingModeStateResetInstance () throws Exception |
| void | testMissingName () throws Exception |
| void | testMissingOutputType () throws Exception |
| void | testMissingStateType () throws Exception |
| void | testModeActionNamespace () throws Exception |
| void | testModeInstanceNamespace () throws Exception |
| void | testModeStateNamespace () throws Exception |
| void | testModeStateResetWithoutInitialValue () throws Exception |
| void | testModeTimerNamespace () throws Exception |
| void | testMultipleFederatedReactor () throws Exception |
| void | testMultipleMainOrFederatedReactor () throws Exception |
| void | testMultipleMainReactor () throws Exception |
| void | testMultipleMainReactorUnnamed () throws Exception |
| void | testMutuallyExclusiveThreadingParams () throws Exception |
| void | testOverflowingDeadline () throws Exception |
| void | testPreambleVisibility () throws Exception |
| Test warnings and errors for the target dependent preamble visibility qualifiers. | |
| void | testTargetParamNotSupportedForTarget () throws Exception |
| void | testUnnamedReactor () throws Exception |
| void | testUnrecognizedTarget () throws Exception |
| void | testUnspecifiedTransitionType () throws Exception |
| void | testUnusedImport () throws Exception |
| void | testWrongParamType () throws Exception |
| void | testWrongStructureForLabelAttribute () throws Exception |
| void | tracingOptionsCpp () throws Exception |
| Ensure that duplicate identifiers for actions reported. | |
| void | warnAgainstMultipleTypes () throws Exception |
| Warn against using multiple types in connection statement. | |
Package Attributes | |
| Map< TargetPropertyType, List< List< Object > > > | compositeTypeToKnownBad |
| Maps a type to a list, each entry of which represents a list with three entries: a known wrong value, the suffix to add to the reported name, and the type that it should be. | |
| ParseHelper< Model > | parser |
| Map< PrimitiveType, List< String > > | primitiveTypeToKnownBad |
| Maps a type to a list of known bad values. | |
| Map< PrimitiveType, List< String > > | primitiveTypeToKnownGood |
| Maps a type to a list of known good values. | |
| ValidationTestHelper | validator |
Collection of unit tests to ensure validation is done correctly.
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.afterBreaksCycle | ( | ) | throws Exception |
Let cyclic dependencies be broken by "after" clauses.
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.afterBreaksCycle2 | ( | ) | throws Exception |
Let cyclic dependencies be broken by "after" clauses with zero delay.
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.afterBreaksCycle3 | ( | ) | throws Exception |
Let cyclic dependencies be broken by "after" clauses with zero delay and no units.
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.checkCargoDependencyProperty | ( | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.checkPlatformProperty | ( | ) | throws Exception |
| Collection< DynamicTest > org.lflang.tests.compiler.LinguaFrancaValidationTest.checkTargetProperties | ( | ) | throws Exception |
Perform checks on target properties.
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.connectionToEffectPort | ( | ) | throws Exception |
Disallow connection to port that is effect of reaction.
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.connectionToEffectPort2 | ( | ) | throws Exception |
Disallow connection to port that is effect of reaction.
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.connectionToEffectPort3 | ( | ) | throws Exception |
Allow connection to the port of a contained reactor if another port with same name is effect of a reaction.
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.connectionToEffectPort3_5 | ( | ) | throws Exception |
Allow connection to the port of a contained reactor if another port with same name is effect of a reaction.
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.connectionToEffectPort4 | ( | ) | throws Exception |
Disallow connection to the port of a contained reactor if the same port is effect of a reaction.
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.detectCausalityLoop | ( | ) | throws Exception |
Detect causality loop.
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.detectInstantiationCycle | ( | ) | throws Exception |
Detect cycles in the instantiation graph.
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.detectInstantiationCycle2 | ( | ) | throws Exception |
Detect cycles in the instantiation graph.
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.disallowBraceInitialization | ( | String | target | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.disallowMainWithDifferentNameThanFile | ( | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.disallowParenthesisInitialization | ( | String | target | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.disallowReactorCalledPreamble | ( | ) | throws Exception |
Check that reactors in C++ cannot be named preamble.
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.disallowUnderscoreActions | ( | ) | throws Exception |
Ensure that "__" is not allowed at the start of an action name.
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.disallowUnderscoreInputs | ( | ) | throws Exception |
Ensure that "__" is not allowed at the start of an input name.
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.disallowUnderscoreOutputs | ( | ) | throws Exception |
Ensure that "__" is not allowed at the start of an output name.
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.disallowUnderscoreParameters | ( | ) | throws Exception |
Ensure that "__" is not allowed at the start of a parameter name.
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.disallowUnderscoreReactorDef | ( | ) | throws Exception |
Ensure that "__" is not allowed at the start of a reactor definition name.
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.disallowUnderscoreReactorInstantiation | ( | ) | throws Exception |
Ensure that "__" is not allowed at the start of a reactor instantiation name.
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.disallowUnderscoreStates | ( | ) | throws Exception |
Ensure that "__" is not allowed at the start of an state name.
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.disallowUnderscoreTimers | ( | ) | throws Exception |
Ensure that "__" is not allowed at the start of a timer name.
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.duplicateVariable | ( | ) | throws Exception |
Ensure that duplicate identifiers for actions reported.
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.missingTrigger | ( | ) | throws Exception |
Report missing trigger.
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.multipleConnectionsToInputTest | ( | ) | throws Exception |
Disallow connection of multiple ports to the same input port.
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.multipleLabels | ( | ) | throws Exception |
Assert no issues when multiple labels are used.
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.nonzeroAfterMustHaveUnits | ( | ) | throws Exception |
Detect missing units in "after" clauses with delay greater than zero.
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.nonZeroTimeValueWithoutUnits | ( | ) | throws Exception |
Report non-zero time value without units.
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.noSemicolonIfNotAmbiguous | ( | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.overflowingAssignmentC | ( | ) | throws Exception |
Report overflowing assignment.
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.overflowingDeadlineC | ( | ) | throws Exception |
Report overflowing deadline.
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.overflowingParameterC | ( | ) | throws Exception |
Report overflowing parameter.
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.parameterTypeMismatch | ( | ) | throws Exception |
Report reference to non-time parameter in time argument.
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.recognizeHostNames | ( | ) | throws Exception |
Recognize valid host names and fully qualified names, report invalid ones.
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.recognizeIPV4 | ( | ) | throws Exception |
Recognize valid IPV4 addresses, report invalid ones.
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.recognizeIPV6 | ( | ) | throws Exception |
Recognize valid IPV6 addresses, report invalid ones.
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.requireSemicolonIfAmbiguous | ( | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.stateAndParameterDeclarationsInC | ( | ) | throws Exception |
Tests for state and parameter declarations, including native lists.
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.targetCodeInTimeArgument | ( | ) | throws Exception |
Report inappropriate literal in time argument.
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.testCppMutableInput | ( | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.testFederatedHasInput | ( | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.testFederatedHasOutput | ( | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.testFederationSupport | ( | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.testImportedCyclicReactor | ( | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.testInheritanceSupport | ( | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.testInitialMode | ( | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.testInitialModes | ( | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.testInvalidTargetParam | ( | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.testMainHasInput | ( | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.testMainHasOutput | ( | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.testMainReactorHasHost | ( | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.testMissingInputType | ( | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.testMissingModeStateReset | ( | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.testMissingModeStateResetInstance | ( | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.testMissingName | ( | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.testMissingOutputType | ( | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.testMissingStateType | ( | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.testModeActionNamespace | ( | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.testModeInstanceNamespace | ( | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.testModeStateNamespace | ( | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.testModeStateResetWithoutInitialValue | ( | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.testModeTimerNamespace | ( | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.testMultipleFederatedReactor | ( | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.testMultipleMainOrFederatedReactor | ( | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.testMultipleMainReactor | ( | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.testMultipleMainReactorUnnamed | ( | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.testMutuallyExclusiveThreadingParams | ( | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.testOverflowingDeadline | ( | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.testPreambleVisibility | ( | ) | throws Exception |
Test warnings and errors for the target dependent preamble visibility qualifiers.
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.testTargetParamNotSupportedForTarget | ( | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.testUnnamedReactor | ( | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.testUnrecognizedTarget | ( | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.testUnspecifiedTransitionType | ( | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.testUnusedImport | ( | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.testWrongParamType | ( | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.testWrongStructureForLabelAttribute | ( | ) | throws Exception |
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.tracingOptionsCpp | ( | ) | throws Exception |
Ensure that duplicate identifiers for actions reported.
| void org.lflang.tests.compiler.LinguaFrancaValidationTest.warnAgainstMultipleTypes | ( | ) | throws Exception |
Warn against using multiple types in connection statement.
|
package |
Maps a type to a list, each entry of which represents a list with three entries: a known wrong value, the suffix to add to the reported name, and the type that it should be.
|
package |
|
package |
Maps a type to a list of known bad values.
|
package |
Maps a type to a list of known good values.
|
package |