User Guide
test_utils.cpp File Reference
#include "test_utils.hpp"
#include "utils/logger.hpp"
#include "utils/string_utils.hpp"
#include <cassert>

Go to the source code of this file.

Namespaces

 nmodl
 encapsulates code generation backend implementations
 
 nmodl::test_utils
 custom type to represent nmodl construct for testing
 

Functions

int nmodl::test_utils::count_leading_spaces (std::string text)
 
bool nmodl::test_utils::is_empty (const std::string &text)
 check if string has only whitespaces More...
 
std::string nmodl::test_utils::reindent_text (const std::string &text, int indent_level)
 Reindent nmodl text for text-to-text comparison. More...