Add 'using namespace' to unit tests

This commit is contained in:
Florian Albrechtskirchinger 2022-07-25 15:14:58 +02:00
parent 74f3bdb000
commit 1d3847295e
No known key found for this signature in database
GPG Key ID: 19618CE9B2D4BE6D
11 changed files with 11 additions and 0 deletions

View File

@ -11,6 +11,7 @@
#define JSON_TESTS_PRIVATE
#include <nlohmann/json.hpp>
using nlohmann::json;
using namespace nlohmann::literals; // NOLINT(google-build-using-namespace)
#include <valarray>

View File

@ -11,6 +11,7 @@
#include <nlohmann/json.hpp>
using nlohmann::json;
using namespace nlohmann::literals; // NOLINT(google-build-using-namespace)
#include <iostream>
#include <iterator>

View File

@ -10,6 +10,7 @@
#include "doctest_compatibility.h"
#include <nlohmann/json.hpp>
using namespace nlohmann::literals; // NOLINT(google-build-using-namespace)
TEST_CASE_TEMPLATE("element access 2", Json, nlohmann::json, nlohmann::ordered_json)
{

View File

@ -10,6 +10,7 @@
#include <nlohmann/json.hpp>
using nlohmann::json;
using namespace nlohmann::literals; // NOLINT(google-build-using-namespace)
#include <fstream>
#include "make_test_data_available.hpp"

View File

@ -11,6 +11,7 @@
#define JSON_TESTS_PRIVATE
#include <nlohmann/json.hpp>
using nlohmann::json;
using namespace nlohmann::literals; // NOLINT(google-build-using-namespace)
#include <sstream>

View File

@ -10,6 +10,7 @@
#include <nlohmann/json.hpp>
using nlohmann::json;
using namespace nlohmann::literals; // NOLINT(google-build-using-namespace)
TEST_CASE("JSON Merge Patch")
{

View File

@ -10,6 +10,7 @@
#include <nlohmann/json.hpp>
using nlohmann::json;
using namespace nlohmann::literals; // NOLINT(google-build-using-namespace)
#include <fstream>
#include <sstream>

View File

@ -10,6 +10,7 @@
#include <nlohmann/json.hpp>
using nlohmann::json;
using namespace nlohmann::literals; // NOLINT(google-build-using-namespace)
#include <deque>
#include <forward_list>

View File

@ -14,6 +14,7 @@
#define JSON_TESTS_PRIVATE
#include <nlohmann/json.hpp>
using nlohmann::json;
using namespace nlohmann::literals; // NOLINT(google-build-using-namespace)
#include <fstream>
#include <sstream>

View File

@ -22,6 +22,7 @@
#include <nlohmann/json.hpp>
using json = nlohmann::json;
using ordered_json = nlohmann::ordered_json;
using namespace nlohmann::literals; // NOLINT(google-build-using-namespace)
#include <cstdio>
#include <list>

View File

@ -14,6 +14,7 @@ DOCTEST_GCC_SUPPRESS_WARNING("-Wnoexcept")
#include <nlohmann/json.hpp>
using nlohmann::json;
using namespace nlohmann::literals; // NOLINT(google-build-using-namespace)
#include <map>
#include <memory>