Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
spdlog
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
spdlog
Commits
e39959a1
Commit
e39959a1
authored
Jun 04, 2019
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated tests to catch v2.8.0
parent
33a42202
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
4 deletions
+5
-4
catch.hpp
tests/catch.hpp
+0
-0
catch.license
tests/catch.license
+1
-2
includes.h
tests/includes.h
+2
-0
test_registry.cpp
tests/test_registry.cpp
+2
-2
No files found.
tests/catch.hpp
View file @
e39959a1
This diff is collapsed.
Click to expand it.
tests/catch.license
View file @
e39959a1
...
...
@@ -20,4 +20,4 @@ FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
\ No newline at end of file
DEALINGS IN THE SOFTWARE.
tests/includes.h
View file @
e39959a1
...
...
@@ -8,7 +8,9 @@
#include <fstream>
#include <iostream>
#include <ostream>
#include <sstream>
#include <string>
#include <iomanip>
#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_DEBUG
...
...
tests/test_registry.cpp
View file @
e39959a1
...
...
@@ -9,7 +9,7 @@ TEST_CASE("register_drop", "[registry]")
spdlog
::
create
<
spdlog
::
sinks
::
null_sink_mt
>
(
tested_logger_name
);
REQUIRE
(
spdlog
::
get
(
tested_logger_name
)
!=
nullptr
);
// Throw if registring existing name
REQUIRE_THROWS_AS
(
spdlog
::
create
<
spdlog
::
sinks
::
null_sink_mt
>
(
tested_logger_name
),
const
spdlog
::
spdlog_ex
&
);
REQUIRE_THROWS_AS
(
spdlog
::
create
<
spdlog
::
sinks
::
null_sink_mt
>
(
tested_logger_name
),
spdlog
::
spdlog_ex
);
}
TEST_CASE
(
"explicit register"
,
"[registry]"
)
...
...
@@ -19,7 +19,7 @@ TEST_CASE("explicit register", "[registry]")
spdlog
::
register_logger
(
logger
);
REQUIRE
(
spdlog
::
get
(
tested_logger_name
)
!=
nullptr
);
// Throw if registring existing name
REQUIRE_THROWS_AS
(
spdlog
::
create
<
spdlog
::
sinks
::
null_sink_mt
>
(
tested_logger_name
),
const
spdlog
::
spdlog_ex
&
);
REQUIRE_THROWS_AS
(
spdlog
::
create
<
spdlog
::
sinks
::
null_sink_mt
>
(
tested_logger_name
),
spdlog
::
spdlog_ex
);
}
TEST_CASE
(
"apply_all"
,
"[registry]"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment