Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Ardupilot
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenSource
Ardupilot
Commits
66b5774f
Commit
66b5774f
authored
12 years ago
by
uncrustify
Committed by
Pat Hickey
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
uncrustify libraries/AP_Common/AP_Test.h
parent
52bc9843
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/AP_Common/AP_Test.h
+5
-5
5 additions, 5 deletions
libraries/AP_Common/AP_Test.h
with
5 additions
and
5 deletions
libraries/AP_Common/AP_Test.h
+
5
−
5
View file @
66b5774f
...
@@ -60,9 +60,9 @@ public:
...
@@ -60,9 +60,9 @@ public:
private:
private:
const
char
*
_name
;
///< name of the current test
const
char
*
_name
;
///< name of the current test
bool
_fail
;
///< set if any ::require calls indicate the test failed
bool
_fail
;
///< set if any ::require calls indicate the test failed
static
int16_t
_passed
;
///< global pass count
static
int16_t
_passed
;
///< global pass count
static
int16_t
_failed
;
///< global fail count
static
int16_t
_failed
;
///< global fail count
};
};
/// Constructor
/// Constructor
...
@@ -115,7 +115,7 @@ int16_t Test::_failed = 0;
...
@@ -115,7 +115,7 @@ int16_t Test::_failed = 0;
/// the end of the block (or until the _test object that is created otherwise
/// the end of the block (or until the _test object that is created otherwise
/// goes out of scope).
/// goes out of scope).
///
///
#define TEST(name) Test _test(#name)
#define TEST(name) Test _test(#
name)
/// Attach an expression to the test's success criteria.
/// Attach an expression to the test's success criteria.
///
///
...
@@ -123,5 +123,5 @@ int16_t Test::_failed = 0;
...
@@ -123,5 +123,5 @@ int16_t Test::_failed = 0;
/// it does not, the text of the expression is output as a diagnostic
/// it does not, the text of the expression is output as a diagnostic
/// and the test is marked as a failure.
/// and the test is marked as a failure.
///
///
#define REQUIRE(expr) _test.require(expr, #expr)
#define REQUIRE(expr) _test.require(expr, #
expr)
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