Use the new licence header in SelfTest's cpp files

This commit is contained in:
Martin Hořeňovský 2022-01-29 00:03:43 +01:00
parent b5dbdc858d
commit f83332d89b
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A
40 changed files with 301 additions and 98 deletions

View File

@ -1,7 +1,10 @@
/*
* Distributed under the Boost Software License, Version 1.0. (See accompanying // Copyright Catch2 Authors
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // Distributed under the Boost Software License, Version 1.0.
*/ // (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
#include <catch2/catch_config.hpp> #include <catch2/catch_config.hpp>
#include <catch2/catch_approx.hpp> #include <catch2/catch_approx.hpp>

View File

@ -1,7 +1,10 @@
/*
* Distributed under the Boost Software License, Version 1.0. (See accompanying // Copyright Catch2 Authors
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // Distributed under the Boost Software License, Version 1.0.
*/ // (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
#include <catch2/catch_test_macros.hpp> #include <catch2/catch_test_macros.hpp>
#include <catch2/internal/catch_enforce.hpp> #include <catch2/internal/catch_enforce.hpp>

View File

@ -1,3 +1,11 @@
// Copyright Catch2 Authors
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
#include <catch2/catch_test_macros.hpp> #include <catch2/catch_test_macros.hpp>
#include <catch2/catch_template_test_macros.hpp> #include <catch2/catch_template_test_macros.hpp>
#include <catch2/internal/catch_floating_point_helpers.hpp> #include <catch2/internal/catch_floating_point_helpers.hpp>

View File

@ -1,3 +1,11 @@
// Copyright Catch2 Authors
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
#include <catch2/catch_approx.hpp> #include <catch2/catch_approx.hpp>
#include <catch2/catch_test_macros.hpp> #include <catch2/catch_test_macros.hpp>
#include <catch2/generators/catch_generator_exception.hpp> #include <catch2/generators/catch_generator_exception.hpp>

View File

@ -1,10 +1,11 @@
/*
* Created by Joachim on 16/04/2019. // Copyright Catch2 Authors
* Adapted from donated nonius code. // Distributed under the Boost Software License, Version 1.0.
* // (See accompanying file LICENSE_1_0.txt or copy at
* Distributed under the Boost Software License, Version 1.0. (See accompanying // https://www.boost.org/LICENSE_1_0.txt)
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/ // SPDX-License-Identifier: BSL-1.0
// Adapted from donated nonius code.
#include <catch2/catch_test_macros.hpp> #include <catch2/catch_test_macros.hpp>
#include <catch2/catch_approx.hpp> #include <catch2/catch_approx.hpp>

View File

@ -1,7 +1,10 @@
/*
* Distributed under the Boost Software License, Version 1.0. (See accompanying // Copyright Catch2 Authors
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // Distributed under the Boost Software License, Version 1.0.
*/ // (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
#include <catch2/catch_test_macros.hpp> #include <catch2/catch_test_macros.hpp>
#include <catch2/generators/catch_generators.hpp> #include <catch2/generators/catch_generators.hpp>

View File

@ -1,7 +1,10 @@
/*
* Distributed under the Boost Software License, Version 1.0. (See accompanying // Copyright Catch2 Authors
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // Distributed under the Boost Software License, Version 1.0.
*/ // (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
#include <catch2/catch_test_macros.hpp> #include <catch2/catch_test_macros.hpp>
#include <catch2/internal/catch_random_number_generator.hpp> #include <catch2/internal/catch_random_number_generator.hpp>

View File

@ -1,7 +1,11 @@
/*
* Distributed under the Boost Software License, Version 1.0. (See accompanying // Copyright Catch2 Authors
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // Distributed under the Boost Software License, Version 1.0.
*/ // (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
#include <catch2/catch_test_macros.hpp> #include <catch2/catch_test_macros.hpp>
#include <catch2/generators/catch_generators_all.hpp> #include <catch2/generators/catch_generators_all.hpp>

View File

@ -1,3 +1,11 @@
// Copyright Catch2 Authors
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
#include <catch2/catch_test_macros.hpp> #include <catch2/catch_test_macros.hpp>
#include <catch2/internal/catch_stringref.hpp> #include <catch2/internal/catch_stringref.hpp>

View File

@ -1,3 +1,11 @@
// Copyright Catch2 Authors
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
#include <catch2/catch_test_macros.hpp> #include <catch2/catch_test_macros.hpp>
#include <catch2/matchers/catch_matchers_vector.hpp> #include <catch2/matchers/catch_matchers_vector.hpp>
#include <catch2/internal/catch_string_manip.hpp> #include <catch2/internal/catch_string_manip.hpp>

View File

@ -1,7 +1,10 @@
/*
* Distributed under the Boost Software License, Version 1.0. (See accompanying // Copyright Catch2 Authors
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // Distributed under the Boost Software License, Version 1.0.
*/ // (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
#include <catch2/matchers/catch_matchers_string.hpp> #include <catch2/matchers/catch_matchers_string.hpp>
#include <catch2/matchers/catch_matchers_vector.hpp> #include <catch2/matchers/catch_matchers_vector.hpp>

View File

@ -1,3 +1,11 @@
// Copyright Catch2 Authors
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
#include <catch2/internal/catch_enum_values_registry.hpp> #include <catch2/internal/catch_enum_values_registry.hpp>
#include <catch2/matchers/catch_matchers_vector.hpp> #include <catch2/matchers/catch_matchers_vector.hpp>
#include <catch2/catch_test_macros.hpp> #include <catch2/catch_test_macros.hpp>

View File

@ -1,3 +1,11 @@
// Copyright Catch2 Authors
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
#include <catch2/catch_test_macros.hpp> #include <catch2/catch_test_macros.hpp>
#include <catch2/internal/catch_unique_ptr.hpp> #include <catch2/internal/catch_unique_ptr.hpp>

View File

@ -1,3 +1,11 @@
// Copyright Catch2 Authors
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
#include <catch2/catch_test_macros.hpp> #include <catch2/catch_test_macros.hpp>
#include <catch2/internal/catch_xmlwriter.hpp> #include <catch2/internal/catch_xmlwriter.hpp>

View File

@ -1,9 +1,10 @@
/*
* Copyright 2011 Two Blue Cubes Ltd. All rights reserved. // Copyright Catch2 Authors
* // Distributed under the Boost Software License, Version 1.0.
* Distributed under the Boost Software License, Version 1.0. (See accompanying // (See accompanying file LICENSE_1_0.txt or copy at
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // https://www.boost.org/LICENSE_1_0.txt)
*/
// SPDX-License-Identifier: BSL-1.0
#include <catch2/catch_test_macros.hpp> #include <catch2/catch_test_macros.hpp>

View File

@ -1,10 +1,10 @@
/*
* Created by Phil on 28/04/2011. // Copyright Catch2 Authors
* Copyright 2011 Two Blue Cubes Ltd. All rights reserved. // Distributed under the Boost Software License, Version 1.0.
* // (See accompanying file LICENSE_1_0.txt or copy at
* Distributed under the Boost Software License, Version 1.0. (See accompanying // https://www.boost.org/LICENSE_1_0.txt)
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/ // SPDX-License-Identifier: BSL-1.0
#include <catch2/catch_test_macros.hpp> #include <catch2/catch_test_macros.hpp>
#include <catch2/catch_approx.hpp> #include <catch2/catch_approx.hpp>

View File

@ -1,7 +1,10 @@
/*
* Distributed under the Boost Software License, Version 1.0. (See accompanying // Copyright Catch2 Authors
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // Distributed under the Boost Software License, Version 1.0.
*/ // (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
#include <catch2/catch_test_macros.hpp> #include <catch2/catch_test_macros.hpp>

View File

@ -1,3 +1,12 @@
// Copyright Catch2 Authors
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
// Adapted from donated nonius code.
#include <catch2/catch_test_macros.hpp> #include <catch2/catch_test_macros.hpp>
#include <catch2/benchmark/catch_benchmark.hpp> #include <catch2/benchmark/catch_benchmark.hpp>
#include <catch2/benchmark/catch_constructor.hpp> #include <catch2/benchmark/catch_constructor.hpp>

View File

@ -1,7 +1,10 @@
/*
* Distributed under the Boost Software License, Version 1.0. (See accompanying // Copyright Catch2 Authors
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // Distributed under the Boost Software License, Version 1.0.
*/ // (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
#include <catch2/catch_test_macros.hpp> #include <catch2/catch_test_macros.hpp>
#include <catch2/catch_template_test_macros.hpp> #include <catch2/catch_template_test_macros.hpp>

View File

@ -1,7 +1,10 @@
/*
* Distributed under the Boost Software License, Version 1.0. (See accompanying // Copyright Catch2 Authors
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // Distributed under the Boost Software License, Version 1.0.
*/ // (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
#include <type_traits> #include <type_traits>

View File

@ -1,7 +1,11 @@
/*
* Distributed under the Boost Software License, Version 1.0. (See accompanying // Copyright Catch2 Authors
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // Distributed under the Boost Software License, Version 1.0.
*/ // (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
#ifdef __clang__ #ifdef __clang__
# pragma clang diagnostic push # pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wpadded" # pragma clang diagnostic ignored "-Wpadded"

View File

@ -1,7 +1,10 @@
/*
* Distributed under the Boost Software License, Version 1.0. (See accompanying // Copyright Catch2 Authors
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // Distributed under the Boost Software License, Version 1.0.
*/ // (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
#include <iostream> #include <iostream>
#include <cstdio> #include <cstdio>

View File

@ -1,3 +1,11 @@
// Copyright Catch2 Authors
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
#include <catch2/catch_test_macros.hpp> #include <catch2/catch_test_macros.hpp>
#include <catch2/internal/catch_enum_values_registry.hpp> #include <catch2/internal/catch_enum_values_registry.hpp>

View File

@ -1,7 +1,10 @@
/*
* Distributed under the Boost Software License, Version 1.0. (See accompanying // Copyright Catch2 Authors
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // Distributed under the Boost Software License, Version 1.0.
*/ // (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
#include <catch2/catch_test_macros.hpp> #include <catch2/catch_test_macros.hpp>
#include <catch2/catch_translate_exception.hpp> #include <catch2/catch_translate_exception.hpp>

View File

@ -1,3 +1,11 @@
// Copyright Catch2 Authors
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
#include <catch2/catch_test_macros.hpp> #include <catch2/catch_test_macros.hpp>
#include <catch2/generators/catch_generator_exception.hpp> #include <catch2/generators/catch_generator_exception.hpp>
#include <catch2/generators/catch_generators_adapters.hpp> #include <catch2/generators/catch_generators_adapters.hpp>

View File

@ -1,7 +1,10 @@
/*
* Distributed under the Boost Software License, Version 1.0. (See accompanying // Copyright Catch2 Authors
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // Distributed under the Boost Software License, Version 1.0.
*/ // (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
#include <catch2/catch_test_macros.hpp> #include <catch2/catch_test_macros.hpp>
#include <catch2/catch_template_test_macros.hpp> #include <catch2/catch_template_test_macros.hpp>

View File

@ -1,5 +1,10 @@
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // Copyright Catch2 Authors
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
#include <catch2/catch_test_macros.hpp> #include <catch2/catch_test_macros.hpp>
#include <catch2/matchers/catch_matchers_container_properties.hpp> #include <catch2/matchers/catch_matchers_container_properties.hpp>

View File

@ -1,7 +1,10 @@
/*
* Distributed under the Boost Software License, Version 1.0. (See accompanying // Copyright Catch2 Authors
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // Distributed under the Boost Software License, Version 1.0.
*/ // (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
#include <catch2/catch_test_macros.hpp> #include <catch2/catch_test_macros.hpp>
#include <iostream> #include <iostream>

View File

@ -1,7 +1,10 @@
/*
* Distributed under the Boost Software License, Version 1.0. (See accompanying // Copyright Catch2 Authors
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // Distributed under the Boost Software License, Version 1.0.
*/ // (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
#include <catch2/catch_test_macros.hpp> #include <catch2/catch_test_macros.hpp>
#include <catch2/catch_template_test_macros.hpp> #include <catch2/catch_template_test_macros.hpp>

View File

@ -1,3 +1,11 @@
// Copyright Catch2 Authors
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
#include <catch2/catch_test_macros.hpp> #include <catch2/catch_test_macros.hpp>
#if defined(CATCH_CONFIG_CPP17_BYTE) #if defined(CATCH_CONFIG_CPP17_BYTE)

View File

@ -1,3 +1,11 @@
// Copyright Catch2 Authors
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
#include <catch2/catch_test_macros.hpp> #include <catch2/catch_test_macros.hpp>
#include <chrono> #include <chrono>

View File

@ -1,7 +1,10 @@
/*
* Distributed under the Boost Software License, Version 1.0. (See accompanying // Copyright Catch2 Authors
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // Distributed under the Boost Software License, Version 1.0.
*/ // (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
#define CATCH_CONFIG_ENABLE_PAIR_STRINGMAKER #define CATCH_CONFIG_ENABLE_PAIR_STRINGMAKER
#include <catch2/catch_test_macros.hpp> #include <catch2/catch_test_macros.hpp>

View File

@ -1,3 +1,11 @@
// Copyright Catch2 Authors
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
#define CATCH_CONFIG_ENABLE_OPTIONAL_STRINGMAKER #define CATCH_CONFIG_ENABLE_OPTIONAL_STRINGMAKER
#include <catch2/catch_test_macros.hpp> #include <catch2/catch_test_macros.hpp>

View File

@ -1,3 +1,11 @@
// Copyright Catch2 Authors
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
#define CATCH_CONFIG_ENABLE_PAIR_STRINGMAKER #define CATCH_CONFIG_ENABLE_PAIR_STRINGMAKER
#include <catch2/catch_test_macros.hpp> #include <catch2/catch_test_macros.hpp>

View File

@ -1,3 +1,11 @@
// Copyright Catch2 Authors
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
#define CATCH_CONFIG_ENABLE_TUPLE_STRINGMAKER #define CATCH_CONFIG_ENABLE_TUPLE_STRINGMAKER
#include <catch2/catch_test_macros.hpp> #include <catch2/catch_test_macros.hpp>

View File

@ -1,3 +1,11 @@
// Copyright Catch2 Authors
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
#define CATCH_CONFIG_ENABLE_VARIANT_STRINGMAKER #define CATCH_CONFIG_ENABLE_VARIANT_STRINGMAKER
#include <catch2/catch_test_macros.hpp> #include <catch2/catch_test_macros.hpp>

View File

@ -1,3 +1,11 @@
// Copyright Catch2 Authors
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
#include <catch2/catch_test_macros.hpp> #include <catch2/catch_test_macros.hpp>
#include <vector> #include <vector>
#include <array> #include <array>

View File

@ -1,7 +1,10 @@
/*
* Demonstrate which version of toString/StringMaker is being used // Copyright Catch2 Authors
* for various types // Distributed under the Boost Software License, Version 1.0.
*/ // (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
#include <catch2/catch_test_macros.hpp> #include <catch2/catch_test_macros.hpp>

View File

@ -1,7 +1,10 @@
/*
* Distributed under the Boost Software License, Version 1.0. (See accompanying // Copyright Catch2 Authors
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // Distributed under the Boost Software License, Version 1.0.
*/ // (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
#ifdef __clang__ #ifdef __clang__
#pragma clang diagnostic ignored "-Wpadded" #pragma clang diagnostic ignored "-Wpadded"

View File

@ -1,7 +1,10 @@
/*
* Distributed under the Boost Software License, Version 1.0. (See accompanying // Copyright Catch2 Authors
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // Distributed under the Boost Software License, Version 1.0.
*/ // (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
#include <catch2/catch_test_macros.hpp> #include <catch2/catch_test_macros.hpp>