Skip to content

Commit

Permalink
Code coverage for checksum calculations
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuraiAku committed Oct 13, 2023
1 parent 6ba0676 commit 51e247b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ end

include("test_api.jl")
include("test_types.jl")
include("test_checksums.jl")
include("test_SpdxAnnotation.jl")
include("test_SpdxLicense.jl")
include("test_SpdxRelationship.jl")
Expand Down
4 changes: 4 additions & 0 deletions test/test_checksums.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@testset "checksums" begin
checksum= spdxchecksum("SHA1", pkgdir(SPDX), String["SPDX.spdx.json"], String[".git"])
@test checksum isa Vector{UInt8} # No good way to indepently verify that the calculation is correct.
end

0 comments on commit 51e247b

Please sign in to comment.