From 319940b442d51d94120a7a35be90fd1970ba9e51 Mon Sep 17 00:00:00 2001 From: Marcel Otto Date: Sun, 5 Apr 2020 00:53:54 +0200 Subject: [PATCH] Ignore some compiler warnings during test --- test/support/rdf_case.ex | 2 ++ test/unit/vocabulary_namespace_test.exs | 13 +++++++++++++ 2 files changed, 15 insertions(+) diff --git a/test/support/rdf_case.ex b/test/support/rdf_case.ex index 4a6bd4e..739d681 100644 --- a/test/support/rdf_case.ex +++ b/test/support/rdf_case.ex @@ -18,6 +18,8 @@ defmodule RDF.Test.Case do import unquote(__MODULE__) import RDF.Sigils + + @compile {:no_warn_undefined, RDF.Test.Case.EX} end end diff --git a/test/unit/vocabulary_namespace_test.exs b/test/unit/vocabulary_namespace_test.exs index 29d7433..087144b 100644 --- a/test/unit/vocabulary_namespace_test.exs +++ b/test/unit/vocabulary_namespace_test.exs @@ -7,6 +7,19 @@ defmodule RDF.Vocabulary.NamespaceTest do alias RDF.Description + @compile {:no_warn_undefined, RDF.Vocabulary.NamespaceTest.TestNS.EX} + @compile {:no_warn_undefined, RDF.Vocabulary.NamespaceTest.TestNS.ExampleFromGraph} + @compile {:no_warn_undefined, RDF.Vocabulary.NamespaceTest.TestNS.ExampleFromNTriplesFile} + @compile {:no_warn_undefined, RDF.Vocabulary.NamespaceTest.TestNS.NonStrictExampleFromTerms} + @compile {:no_warn_undefined, RDF.Vocabulary.NamespaceTest.TestNS.NonStrictExampleFromAliasedTerms} + @compile {:no_warn_undefined, RDF.Vocabulary.NamespaceTest.TestNS.StrictExampleFromTerms} + @compile {:no_warn_undefined, RDF.Vocabulary.NamespaceTest.NSofEdgeCases.Example} + @compile {:no_warn_undefined, RDF.Vocabulary.NamespaceTest.NSWithAliasesForElixirTerms.Example} + @compile {:no_warn_undefined, RDF.Vocabulary.NamespaceTest.NSwithUnderscoreTerms.Example} + @compile {:no_warn_undefined, RDF.Vocabulary.NamespaceTest.NSWithIgnoredTerms.ExampleIgnoredLowercasedTerm} + @compile {:no_warn_undefined, RDF.Vocabulary.NamespaceTest.NSWithIgnoredTerms.ExampleIgnoredNonStrictLowercasedTerm} + @compile {:no_warn_undefined, RDF.Vocabulary.NamespaceTest.NSWithIgnoredTerms.ExampleIgnoredLowercasedTermWithAlias} + @compile {:no_warn_undefined, RDF.Vocabulary.NamespaceTest.NSWithIgnoredTerms.ExampleIgnoredLowercasedAlias} defmodule TestNS do use RDF.Vocabulary.Namespace