Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
13e7bae4
Commit
13e7bae4
authored
4 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
Tests/GTestWrapper: file header comments
parent
49055eaf
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Tests/GTestWrapper/TestAll.cpp
+25
-0
25 additions, 0 deletions
Tests/GTestWrapper/TestAll.cpp
Tests/GTestWrapper/google_test.h
+14
-0
14 additions, 0 deletions
Tests/GTestWrapper/google_test.h
with
39 additions
and
0 deletions
Tests/GTestWrapper/TestAll.cpp
+
25
−
0
View file @
13e7bae4
// ************************************************************************************************
//
// BornAgain: simulate and fit scattering at grazing incidence
//
//! @file Tests/GTestWrapper/TestAll.cpp
//! @brief Implements main, for use in various test directories.
//!
//! @homepage http://www.bornagainproject.org
//! @license GNU General Public License v3 or higher (see COPYING)
//! @copyright Forschungszentrum Jülich GmbH 2018
//! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
//
// ************************************************************************************************
#include
"Tests/GTestWrapper/google_test.h"
//! Main program for use in various test directories.
//!
//! We need this function instead of gtest_main [1] because we want to use our
//! wrapper google_test.h instead of gtest.h.
//!
//! We compile this function separately in each test directory, and link it with
//! source files that contain TEST_F macros.
//!
//! [1] https://github.com/google/googletest/blob/master/googletest/docs/primer.md
//! #writing-the-main-function
int
main
(
int
argc
,
char
**
argv
)
{
::
testing
::
InitGoogleTest
(
&
argc
,
argv
);
...
...
This diff is collapsed.
Click to expand it.
Tests/GTestWrapper/google_test.h
+
14
−
0
View file @
13e7bae4
// ************************************************************************************************
//
// BornAgain: simulate and fit scattering at grazing incidence
//
//! @file Tests/GTestWrapper/google_test.h
//! @brief Wraps gtest.h, and provides tests for complex number.
//!
//! @homepage http://www.bornagainproject.org
//! @license GNU General Public License v3 or higher (see COPYING)
//! @copyright Forschungszentrum Jülich GmbH 2018
//! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
//
// ************************************************************************************************
#ifndef BORNAGAIN_TESTS_GTESTWRAPPER_GOOGLE_TEST_H
#define BORNAGAIN_TESTS_GTESTWRAPPER_GOOGLE_TEST_H
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment