Skip to content

Commit f7bbe81

Browse files
authored
Inline licence info & copyright for test files (#14257)
1 parent 2251b1e commit f7bbe81

File tree

214 files changed

+875
-46
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

214 files changed

+875
-46
lines changed

lib/eex/test/eex/smart_engine_test.exs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
Code.require_file("../test_helper.exs", __DIR__)
26

37
defmodule EEx.SmartEngineTest do

lib/eex/test/eex/tokenizer_test.exs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
Code.require_file("../test_helper.exs", __DIR__)
26

37
defmodule EEx.TokenizerTest do

lib/eex/test/eex_test.exs

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
Code.require_file("test_helper.exs", __DIR__)
26

37
require EEx
@@ -860,13 +864,13 @@ defmodule EExTest do
860864
file = to_charlist(Path.relative_to_cwd(__ENV__.file))
861865

862866
assert EExTest.Compiled.before_compile() ==
863-
{7, {EExTest.Compiled, :before_compile, 0, [file: file, line: 7]}}
867+
{11, {EExTest.Compiled, :before_compile, 0, [file: file, line: 11]}}
864868

865869
assert EExTest.Compiled.after_compile() ==
866-
{21, {EExTest.Compiled, :after_compile, 0, [file: file, line: 21]}}
870+
{25, {EExTest.Compiled, :after_compile, 0, [file: file, line: 25]}}
867871

868872
assert EExTest.Compiled.unknown() ==
869-
{26, {EExTest.Compiled, :unknown, 0, [file: ~c"unknown", line: 26]}}
873+
{30, {EExTest.Compiled, :unknown, 0, [file: ~c"unknown", line: 30]}}
870874
end
871875
end
872876

lib/eex/test/test_helper.exs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
{line_exclude, line_include} =
26
if line = System.get_env("LINE"), do: {[:test], [line: line]}, else: {[], []}
37

lib/elixir/test/elixir/access_test.exs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
Code.require_file("test_helper.exs", __DIR__)
26

37
defmodule AccessTest do

lib/elixir/test/elixir/agent_test.exs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
Code.require_file("test_helper.exs", __DIR__)
26

37
defmodule AgentTest do

lib/elixir/test/elixir/application_test.exs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
Code.require_file("test_helper.exs", __DIR__)
26

37
defmodule ApplicationTest do

lib/elixir/test/elixir/atom_test.exs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
Code.require_file("test_helper.exs", __DIR__)
26

37
defmodule AtomTest do

lib/elixir/test/elixir/base_test.exs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
Code.require_file("test_helper.exs", __DIR__)
26

37
defmodule BaseTest do

lib/elixir/test/elixir/bitwise_test.exs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
Code.require_file("test_helper.exs", __DIR__)
26

37
defmodule BitwiseTest do

lib/elixir/test/elixir/calendar/date_range_test.exs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
Code.require_file("../test_helper.exs", __DIR__)
26
Code.require_file("holocene.exs", __DIR__)
37

lib/elixir/test/elixir/calendar/date_test.exs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
Code.require_file("../test_helper.exs", __DIR__)
26
Code.require_file("holocene.exs", __DIR__)
37
Code.require_file("fakes.exs", __DIR__)

lib/elixir/test/elixir/calendar/datetime_test.exs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
Code.require_file("../test_helper.exs", __DIR__)
26
Code.require_file("holocene.exs", __DIR__)
37
Code.require_file("fakes.exs", __DIR__)

lib/elixir/test/elixir/calendar/duration_test.exs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
14
Code.require_file("../test_helper.exs", __DIR__)
25

36
defmodule DurationTest do

lib/elixir/test/elixir/calendar/fakes.exs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
defmodule FakeCalendar do
26
def time_to_string(hour, minute, second, _), do: "#{hour}::#{minute}::#{second}"
37
def date_to_string(year, month, day), do: "#{day}/#{month}/#{year}"

lib/elixir/test/elixir/calendar/holocene.exs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
defmodule Calendar.Holocene do
26
# This calendar is used to test conversions between calendars.
37
# It implements the Holocene calendar, which is based on the

lib/elixir/test/elixir/calendar/iso_test.exs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
Code.require_file("../test_helper.exs", __DIR__)
26

37
defmodule Calendar.ISOTest do

lib/elixir/test/elixir/calendar/naive_datetime_test.exs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
Code.require_file("../test_helper.exs", __DIR__)
26
Code.require_file("holocene.exs", __DIR__)
37
Code.require_file("fakes.exs", __DIR__)

lib/elixir/test/elixir/calendar/time_test.exs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
Code.require_file("../test_helper.exs", __DIR__)
26
Code.require_file("holocene.exs", __DIR__)
37
Code.require_file("fakes.exs", __DIR__)

lib/elixir/test/elixir/calendar_test.exs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
14
Code.require_file("test_helper.exs", __DIR__)
25

36
defmodule CalendarTest do

lib/elixir/test/elixir/changelog_test.exs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
14
ExUnit.start()
25

36
defmodule ChangelogTest do

lib/elixir/test/elixir/code_formatter/calls_test.exs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
Code.require_file("../test_helper.exs", __DIR__)
26

37
defmodule Code.Formatter.CallsTest do

lib/elixir/test/elixir/code_formatter/comments_test.exs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
Code.require_file("../test_helper.exs", __DIR__)
26

37
defmodule Code.Formatter.CommentsTest do

lib/elixir/test/elixir/code_formatter/containers_test.exs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
Code.require_file("../test_helper.exs", __DIR__)
26

37
defmodule Code.Formatter.ContainersTest do

lib/elixir/test/elixir/code_formatter/general_test.exs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
Code.require_file("../test_helper.exs", __DIR__)
26

37
defmodule Code.Formatter.GeneralTest do

lib/elixir/test/elixir/code_formatter/integration_test.exs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
Code.require_file("../test_helper.exs", __DIR__)
26

37
defmodule Code.Formatter.IntegrationTest do

lib/elixir/test/elixir/code_formatter/literals_test.exs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
Code.require_file("../test_helper.exs", __DIR__)
26

37
defmodule Code.Formatter.LiteralsTest do

lib/elixir/test/elixir/code_formatter/migration_test.exs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
14
Code.require_file("../test_helper.exs", __DIR__)
25

36
defmodule Code.Formatter.MigrationTest do

lib/elixir/test/elixir/code_formatter/operators_test.exs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
Code.require_file("../test_helper.exs", __DIR__)
26

37
defmodule Code.Formatter.OperatorsTest do

lib/elixir/test/elixir/code_fragment_test.exs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
14
Code.require_file("test_helper.exs", __DIR__)
25

36
defmodule CodeFragmentTest do

lib/elixir/test/elixir/code_identifier_test.exs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
Code.require_file("test_helper.exs", __DIR__)
26

37
defmodule Code.IdentifierTest do

lib/elixir/test/elixir/code_normalizer/formatted_ast_test.exs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
Code.require_file("../test_helper.exs", __DIR__)
26

37
defmodule Code.Normalizer.FormatterASTTest do

lib/elixir/test/elixir/code_normalizer/quoted_ast_test.exs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
14
Code.require_file("../test_helper.exs", __DIR__)
25

36
defmodule Code.Normalizer.QuotedASTTest do

lib/elixir/test/elixir/code_test.exs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
Code.require_file("test_helper.exs", __DIR__)
26

37
defmodule CodeTest do

lib/elixir/test/elixir/collectable_test.exs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
Code.require_file("test_helper.exs", __DIR__)
26

37
defmodule CollectableTest do

lib/elixir/test/elixir/config/provider_test.exs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
Code.require_file("../test_helper.exs", __DIR__)
26

37
defmodule Config.ProviderTest do

lib/elixir/test/elixir/config/reader_test.exs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
Code.require_file("../test_helper.exs", __DIR__)
26

37
defmodule Config.ReaderTest do

lib/elixir/test/elixir/config_test.exs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
Code.require_file("test_helper.exs", __DIR__)
26

37
defmodule ConfigTest do

lib/elixir/test/elixir/dynamic_supervisor_test.exs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
Code.require_file("test_helper.exs", __DIR__)
26

37
defmodule DynamicSupervisorTest do

lib/elixir/test/elixir/enum_test.exs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
Code.require_file("test_helper.exs", __DIR__)
26

37
defmodule EnumTest do

lib/elixir/test/elixir/exception_test.exs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
Code.require_file("test_helper.exs", __DIR__)
26

37
defmodule ExceptionTest do

lib/elixir/test/elixir/file/stream_test.exs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
14
Code.require_file("../test_helper.exs", __DIR__)
25

36
defmodule File.StreamTest do

lib/elixir/test/elixir/file_test.exs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
Code.require_file("test_helper.exs", __DIR__)
26

37
defmodule FileTest do

lib/elixir/test/elixir/float_test.exs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
Code.require_file("test_helper.exs", __DIR__)
26

37
defmodule FloatTest do

lib/elixir/test/elixir/function_test.exs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
Code.require_file("test_helper.exs", __DIR__)
26

37
defmodule DummyFunction do

lib/elixir/test/elixir/gen_server_test.exs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
Code.require_file("test_helper.exs", __DIR__)
26

37
defmodule GenServerTest do

lib/elixir/test/elixir/inspect/algebra_test.exs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
Code.require_file("../test_helper.exs", __DIR__)
26

37
defmodule Inspect.OptsTest do

lib/elixir/test/elixir/inspect_test.exs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
15
Code.require_file("test_helper.exs", __DIR__)
26

37
defmodule Inspect.AtomTest do

0 commit comments

Comments
 (0)