NEURON
hoc_interpreter.cpp File Reference
#include <catch2/generators/catch_generators_range.hpp>
#include <catch2/matchers/catch_matchers_string.hpp>
#include <catch2/catch_test_macros.hpp>
#include "classreg.h"
#include "code.h"
#include "hocdec.h"
#include "ocfunc.h"
#include <sstream>

Go to the source code of this file.

Functions

 TEST_CASE ("Test hoc interpreter", "[NEURON][hoc_interpreter]")
 
static void istmpobj ()
 
 TEST_CASE ("Test hoc_register_var", "[NEURON][hoc_interpreter][istmpobj]")
 
 SCENARIO ("Test for issue #1995", "[NEURON][hoc_interpreter][issue-1995]")
 
std::string hoc_oc_require_error (const char *buf)
 
 SCENARIO ("Test calling code from HOC that throws exceptions", "[NEURON][hoc_interpreter]")
 

Variables

constexpr static auto check_tempobj_canary = 0xDEADBEEF
 
static VoidFunc hoc_intfunc [] = {{"istmpobj", istmpobj}, {0, 0}}
 

Function Documentation

◆ hoc_oc_require_error()

std::string hoc_oc_require_error ( const char *  buf)

Definition at line 131 of file hoc_interpreter.cpp.

◆ istmpobj()

static void istmpobj ( )
static

Definition at line 23 of file hoc_interpreter.cpp.

◆ SCENARIO() [1/2]

SCENARIO ( "Test calling code from HOC that throws exceptions"  ,
""  [NEURON][hoc_interpreter] 
)

Definition at line 141 of file hoc_interpreter.cpp.

◆ SCENARIO() [2/2]

SCENARIO ( "Test for issue #1995"  ,
""  [NEURON][hoc_interpreter][issue-1995] 
)

Definition at line 38 of file hoc_interpreter.cpp.

◆ TEST_CASE() [1/2]

TEST_CASE ( "Test hoc interpreter"  ,
""  [NEURON][hoc_interpreter] 
)

Definition at line 13 of file hoc_interpreter.cpp.

◆ TEST_CASE() [2/2]

TEST_CASE ( "Test hoc_register_var ,
""  [NEURON][hoc_interpreter][istmpobj] 
)

Definition at line 31 of file hoc_interpreter.cpp.

Variable Documentation

◆ check_tempobj_canary

constexpr static auto check_tempobj_canary = 0xDEADBEEF
staticconstexpr

Definition at line 21 of file hoc_interpreter.cpp.

◆ hoc_intfunc

VoidFunc hoc_intfunc[] = {{"istmpobj", istmpobj}, {0, 0}}
static

Definition at line 28 of file hoc_interpreter.cpp.