C++: Add tests of internal MaD predicates and accept test changes.

This commit is contained in:
Mathias Vorreiter Pedersen
2024-06-26 14:10:31 +01:00
parent d38ce61e03
commit e845204ec9
3 changed files with 524 additions and 0 deletions

View File

@@ -623,6 +623,34 @@ private predicate signatureMatches(Function func, string signature, string type,
else i = count(signature.indexOf(","))
}
/**
* Internal: Do not use.
*
* This module only exists to expose internal predicates for testing purposes.
*/
module ExternalFlowDebug {
/**
* INTERNAL: Do not use.
*
* Exposed for testing purposes.
*/
predicate signatureMatches_debug = signatureMatches/5;
/**
* INTERNAL: Do not use.
*
* Exposed for testing purposes.
*/
predicate getSignatureParameterName_debug = getSignatureParameterName/4;
/**
* INTERNAL: Do not use.
*
* Exposed for testing purposes.
*/
predicate getParameterTypeName_debug = getParameterTypeName/2;
}
/**
* Holds if `s` can be broken into a string of the form
* `beforeAngles<betweenAngles>`,