diff --git a/src/exports.jl b/src/exports.jl index 538b6d96..5a5e672b 100644 --- a/src/exports.jl +++ b/src/exports.jl @@ -19,7 +19,7 @@ function undefined_exports(m::Module) undefined = Symbol[] walkmodules(m) do x for n in names(x) - isdefined(x, n) || push!(undefined, n) + isdefined(x, n) || push!(undefined, Symbol(join([fullname(x)...; n], '.'))) end end return undefined diff --git a/test/test_undefined_exports.jl b/test/test_undefined_exports.jl index 1f011d26..007a5f32 100644 --- a/test/test_undefined_exports.jl +++ b/test/test_undefined_exports.jl @@ -5,6 +5,8 @@ include("preamble.jl") using PkgWithUndefinedExports @testset begin + @test Aqua.undefined_exports(PkgWithUndefinedExports) == + [Symbol("PkgWithUndefinedExports.undefined_name")] results = @testtestset begin Aqua.test_undefined_exports(PkgWithUndefinedExports) end