Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorMartin Hořeňovský2023-08-24 16:33:15 +0200
committerMartin Hořeňovský2023-08-24 16:34:31 +0200
commit85eb4652b46cc69c4ad7915c9fd3b009d99e9fb7 (patch)
tree8b0ed302106c4ffe875701d7823aa72480d432e9 /examples
parent5bba3e4038602badb691da914523f667a2dd1f27 (diff)
downloadcatch3-85eb4652b46cc69c4ad7915c9fd3b009d99e9fb7.tar.gz
Add nice license headers to files in examples/ and fuzzing/
Related to #2730
Diffstat (limited to 'examples')
-rw-r--r--examples/010-TestCase.cpp8
-rw-r--r--examples/020-TestCase-1.cpp8
-rw-r--r--examples/020-TestCase-2.cpp8
-rw-r--r--examples/030-Asn-Require-Check.cpp8
-rw-r--r--examples/100-Fix-Section.cpp8
-rw-r--r--examples/110-Fix-ClassFixture.cpp8
-rw-r--r--examples/120-Bdd-ScenarioGivenWhenThen.cpp8
-rw-r--r--examples/210-Evt-EventListeners.cpp8
-rw-r--r--examples/231-Cfg-OutputStreams.cpp8
-rw-r--r--examples/300-Gen-OwnGenerator.cpp8
-rw-r--r--examples/301-Gen-MapTypeConversion.cpp8
-rw-r--r--examples/302-Gen-Table.cpp8
-rw-r--r--examples/310-Gen-VariablesInGenerators.cpp8
-rw-r--r--examples/311-Gen-CustomCapture.cpp8
14 files changed, 112 insertions, 0 deletions
diff --git a/examples/010-TestCase.cpp b/examples/010-TestCase.cpp
index 7ec208d5..9e5cd8cd 100644
--- a/examples/010-TestCase.cpp
+++ b/examples/010-TestCase.cpp
@@ -1,3 +1,11 @@
+
+// Copyright Catch2 Authors
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE.txt or copy at
+// https://www.boost.org/LICENSE_1_0.txt)
+
+// SPDX-License-Identifier: BSL-1.0
+
// 010-TestCase.cpp
// And write tests in the same file:
#include <catch2/catch_test_macros.hpp>
diff --git a/examples/020-TestCase-1.cpp b/examples/020-TestCase-1.cpp
index cec55799..a9d87dbc 100644
--- a/examples/020-TestCase-1.cpp
+++ b/examples/020-TestCase-1.cpp
@@ -1,3 +1,11 @@
+
+// Copyright Catch2 Authors
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE.txt or copy at
+// https://www.boost.org/LICENSE_1_0.txt)
+
+// SPDX-License-Identifier: BSL-1.0
+
// 020-TestCase-1.cpp
#include <catch2/catch_test_macros.hpp>
diff --git a/examples/020-TestCase-2.cpp b/examples/020-TestCase-2.cpp
index 3f5767b3..72dd0ffb 100644
--- a/examples/020-TestCase-2.cpp
+++ b/examples/020-TestCase-2.cpp
@@ -1,3 +1,11 @@
+
+// Copyright Catch2 Authors
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE.txt or copy at
+// https://www.boost.org/LICENSE_1_0.txt)
+
+// SPDX-License-Identifier: BSL-1.0
+
// 020-TestCase-2.cpp
// main() provided by Catch in file 020-TestCase-1.cpp.
diff --git a/examples/030-Asn-Require-Check.cpp b/examples/030-Asn-Require-Check.cpp
index 0d027ca9..62cd3cfc 100644
--- a/examples/030-Asn-Require-Check.cpp
+++ b/examples/030-Asn-Require-Check.cpp
@@ -1,3 +1,11 @@
+
+// Copyright Catch2 Authors
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE.txt or copy at
+// https://www.boost.org/LICENSE_1_0.txt)
+
+// SPDX-License-Identifier: BSL-1.0
+
// 030-Asn-Require-Check.cpp
// Catch has two natural expression assertion macro's:
diff --git a/examples/100-Fix-Section.cpp b/examples/100-Fix-Section.cpp
index cfbfa79f..7c8d8aa8 100644
--- a/examples/100-Fix-Section.cpp
+++ b/examples/100-Fix-Section.cpp
@@ -1,3 +1,11 @@
+
+// Copyright Catch2 Authors
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE.txt or copy at
+// https://www.boost.org/LICENSE_1_0.txt)
+
+// SPDX-License-Identifier: BSL-1.0
+
// 100-Fix-Section.cpp
// Catch has two ways to express fixtures:
diff --git a/examples/110-Fix-ClassFixture.cpp b/examples/110-Fix-ClassFixture.cpp
index 75c10da6..614c3797 100644
--- a/examples/110-Fix-ClassFixture.cpp
+++ b/examples/110-Fix-ClassFixture.cpp
@@ -1,3 +1,11 @@
+
+// Copyright Catch2 Authors
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE.txt or copy at
+// https://www.boost.org/LICENSE_1_0.txt)
+
+// SPDX-License-Identifier: BSL-1.0
+
// 110-Fix-ClassFixture.cpp
// Catch has two ways to express fixtures:
diff --git a/examples/120-Bdd-ScenarioGivenWhenThen.cpp b/examples/120-Bdd-ScenarioGivenWhenThen.cpp
index 99cdf9ab..345d53c3 100644
--- a/examples/120-Bdd-ScenarioGivenWhenThen.cpp
+++ b/examples/120-Bdd-ScenarioGivenWhenThen.cpp
@@ -1,3 +1,11 @@
+
+// Copyright Catch2 Authors
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE.txt or copy at
+// https://www.boost.org/LICENSE_1_0.txt)
+
+// SPDX-License-Identifier: BSL-1.0
+
// 120-Bdd-ScenarioGivenWhenThen.cpp
// main() provided by linkage with Catch2WithMain
diff --git a/examples/210-Evt-EventListeners.cpp b/examples/210-Evt-EventListeners.cpp
index 6cedb885..56b050d4 100644
--- a/examples/210-Evt-EventListeners.cpp
+++ b/examples/210-Evt-EventListeners.cpp
@@ -1,3 +1,11 @@
+
+// Copyright Catch2 Authors
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE.txt or copy at
+// https://www.boost.org/LICENSE_1_0.txt)
+
+// SPDX-License-Identifier: BSL-1.0
+
// 210-Evt-EventListeners.cpp
// Contents:
diff --git a/examples/231-Cfg-OutputStreams.cpp b/examples/231-Cfg-OutputStreams.cpp
index b77c1273..da1713cf 100644
--- a/examples/231-Cfg-OutputStreams.cpp
+++ b/examples/231-Cfg-OutputStreams.cpp
@@ -1,3 +1,11 @@
+
+// Copyright Catch2 Authors
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE.txt or copy at
+// https://www.boost.org/LICENSE_1_0.txt)
+
+// SPDX-License-Identifier: BSL-1.0
+
// 231-Cfg-OutputStreams.cpp
// Show how to replace the streams with a simple custom made streambuf.
diff --git a/examples/300-Gen-OwnGenerator.cpp b/examples/300-Gen-OwnGenerator.cpp
index 09643d6f..b5d951ac 100644
--- a/examples/300-Gen-OwnGenerator.cpp
+++ b/examples/300-Gen-OwnGenerator.cpp
@@ -1,3 +1,11 @@
+
+// Copyright Catch2 Authors
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE.txt or copy at
+// https://www.boost.org/LICENSE_1_0.txt)
+
+// SPDX-License-Identifier: BSL-1.0
+
// 300-Gen-OwnGenerator.cpp
// Shows how to define a custom generator.
diff --git a/examples/301-Gen-MapTypeConversion.cpp b/examples/301-Gen-MapTypeConversion.cpp
index ba55f65f..a065d87a 100644
--- a/examples/301-Gen-MapTypeConversion.cpp
+++ b/examples/301-Gen-MapTypeConversion.cpp
@@ -1,3 +1,11 @@
+
+// Copyright Catch2 Authors
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE.txt or copy at
+// https://www.boost.org/LICENSE_1_0.txt)
+
+// SPDX-License-Identifier: BSL-1.0
+
// 301-Gen-MapTypeConversion.cpp
// Shows how to use map to modify generator's return type.
diff --git a/examples/302-Gen-Table.cpp b/examples/302-Gen-Table.cpp
index 97809889..3cdb1430 100644
--- a/examples/302-Gen-Table.cpp
+++ b/examples/302-Gen-Table.cpp
@@ -1,3 +1,11 @@
+
+// Copyright Catch2 Authors
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE.txt or copy at
+// https://www.boost.org/LICENSE_1_0.txt)
+
+// SPDX-License-Identifier: BSL-1.0
+
// 302-Gen-Table.cpp
// Shows how to use table to run a test many times with different inputs. Lifted from examples on
// issue #850.
diff --git a/examples/310-Gen-VariablesInGenerators.cpp b/examples/310-Gen-VariablesInGenerators.cpp
index 0339c5f1..5d24d45a 100644
--- a/examples/310-Gen-VariablesInGenerators.cpp
+++ b/examples/310-Gen-VariablesInGenerators.cpp
@@ -1,3 +1,11 @@
+
+// Copyright Catch2 Authors
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE.txt or copy at
+// https://www.boost.org/LICENSE_1_0.txt)
+
+// SPDX-License-Identifier: BSL-1.0
+
// 310-Gen-VariablesInGenerator.cpp
// Shows how to use variables when creating generators.
diff --git a/examples/311-Gen-CustomCapture.cpp b/examples/311-Gen-CustomCapture.cpp
index d12ee709..ee310383 100644
--- a/examples/311-Gen-CustomCapture.cpp
+++ b/examples/311-Gen-CustomCapture.cpp
@@ -1,3 +1,11 @@
+
+// Copyright Catch2 Authors
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE.txt or copy at
+// https://www.boost.org/LICENSE_1_0.txt)
+
+// SPDX-License-Identifier: BSL-1.0
+
// 311-Gen-CustomCapture.cpp
// Shows how to provide custom capture list to the generator expression