Skip to content

Commit

Permalink
Tests: Add a unit test for vfs.dlopen error handling
Browse files Browse the repository at this point in the history
Doesn't cover the main functionality; which is just too involved for a mere unit test.
  • Loading branch information
rdw-software committed Jan 17, 2025
1 parent d389c3f commit ca20ea8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Tests/BDD/vfs-library.spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,11 @@ describe("vfs", function()
end)
end)

describe("dlopen", function()
it("should throw if an invalid library name was passed", function()
assertThrows(function()
vfs.dlopen({}, nil)
end, "Expected argument libraryName to be a string value, but received a nil value instead")
end)
end)
end)

0 comments on commit ca20ea8

Please sign in to comment.