Gromacs  2024.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
symtab.cpp File Reference
#include "gmxpre.h"
#include "gromacs/topology/symtab.h"
#include <memory>
#include <gtest/gtest.h>
#include "gromacs/utility/arrayref.h"
#include "gromacs/utility/exceptions.h"
#include "gromacs/utility/inmemoryserializer.h"
#include "gromacs/utility/strconvert.h"
#include "gromacs/utility/stringutil.h"
#include "gromacs/utility/textreader.h"
#include "testutils/refdata.h"
#include "testutils/testfilemanager.h"
+ Include dependency graph for symtab.cpp:

Description

Tests for legacy symbol table and replacement.

Author
Paul Bauer paul..nosp@m.baue.nosp@m.r.q@g.nosp@m.mail.nosp@m..com

Functions

static void gmx::test::compareDifferentIndices (const StringTableBuilder &builder, const StringTableEntry &firstSymbol, const StringTableEntry &otherSymbol, bool expectedOutcome)
 Check that symbols obtained from symtab compare correctly. More...
 
static int gmx::test::readIndexFromSerializer (const StringTableEntry &symbol)
 Helper to obtain the integer index from an entry. More...
 
static void gmx::test::stringMatches (const StringTable &symtab, const StringTableEntry &symbol, const char *string)
 Helper function to check that a string in matches when looked up in non finalized table. More...
 
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. More...
 
void gmx::test::anonymous_namespace{symtab.cpp}::compareSymtabLookupAndHandle (t_symtab *symtab, char **symbol)
 Helper function to check internal consistency of symtab lookup. 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. More...