Gromacs  2025.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Typedefs | Functions | Variables
scope_guard.cpp File Reference
#include "external/scope_guard/scope_guard.h"
#include <utility>
#include <gtest/gtest.h>
+ Include dependency graph for scope_guard.cpp:

Description

Tests for scope guard functionality.

These tests check the functionality of scope_guard.h This header has its own test suite which we trust, but we still want to ensure that some functionality works the way we need it to.

Author
Petter Johansson pettj.nosp@m.oha@.nosp@m.kth.s.nosp@m.e

Typedefs

using gmx::test::anonymous_namespace{scope_guard.cpp}::DeleterType = int(*)(int)
 

Functions

int gmx::test::anonymous_namespace{scope_guard.cpp}::deleterSetter (int object)
 
std::pair< int,
sg::detail::scope_guard
< BoundDeleter > > 
gmx::test::anonymous_namespace{scope_guard.cpp}::makeGuard (int object, DeleterType deleter)
 

Variables

static int gmx::test::anonymous_namespace{scope_guard.cpp}::s_deleterValue = 0
 Global value which is set by the below function. More...