Gromacs
2025-dev-20240910-a7e2421
|
Functions | |
bool | entriesAreEqual (t_symtab *symtab, char **symbol, int index) |
Helper that compares an input to a handle obtained from symtab lookup. More... | |
void | compareSymtabLookupAndHandle (t_symtab *symtab, char **symbol) |
Helper function to check internal consistency of symtab lookup. More... | |
void | compareDifferentHandles (t_symtab *symtab, char **firstSymbol, char **otherSymbol, bool expectedOutcome) |
Check that symbols obtained from symtab compare correctly. More... | |
void gmx::test::anonymous_namespace{symtab.cpp}::compareDifferentHandles | ( | t_symtab * | symtab, |
char ** | firstSymbol, | ||
char ** | otherSymbol, | ||
bool | expectedOutcome | ||
) |
Check that symbols obtained from symtab compare correctly.
Helper function to find out if two entries obtained by a symtab lookup are equivalent or not, according to testing criteria.
[in] | symtab | Symbol table that contains the entries. |
[in] | firstSymbol | Handle into symtab obtained from placing string in symtab. |
[in] | otherSymbol | Other handle from obtained from separate string deposit. |
[in] | expectedOutcome | If the handles should result in equal entries or not. |
void gmx::test::anonymous_namespace{symtab.cpp}::compareSymtabLookupAndHandle | ( | t_symtab * | symtab, |
char ** | symbol | ||
) |
Helper function to check internal consistency of symtab lookup.
Checks that placing an entry resulted in valid symbol table, and that the index obtained from a call to lookup_symtab returns the correct entry.
[in] | symtab | Symbol table that contains the entries. |
[in] | symbol | The entry obtained from placing a string in the symbol table. |
bool gmx::test::anonymous_namespace{symtab.cpp}::entriesAreEqual | ( | t_symtab * | symtab, |
char ** | symbol, | ||
int | index | ||
) |
Helper that compares an input to a handle obtained from symtab lookup.
[in] | symtab | Symbol table that contains the entries. |
[in] | symbol | The entry obtained from placing a string in the symbol table. |
[in] | index | Index into symtab corresponding to an entry. |
symbol
and the entry returned by index
are the same pointer.