Skip to content
This repository was archived by the owner on Mar 24, 2022. It is now read-only.

move lucet-module bindings tests#386

Merged
data-pup merged 2 commits intobytecodealliance:masterfrom
data-pup:module-bindings-tests
Jan 10, 2020
Merged

move lucet-module bindings tests#386
data-pup merged 2 commits intobytecodealliance:masterfrom
data-pup:module-bindings-tests

Conversation

@data-pup
Copy link
Copy Markdown
Member

@data-pup data-pup commented Jan 9, 2020

The tests we currently have in lucet-module/src/bindings.rs could be better placed in an integration test file lucet-module/tests/bindings.rs. These tests already refer to some test fixtures located in the tests/ directory, so they would live closer to these fixtures if moved. These tests also don't test any private API surface, so treating them as outlined integration tests feels more honest.

The only change to the tests themselves is in a separate commit, addressing a lint error about asserting on constants values. That can instead be expressed as an assert! checking that result.is_err() is true.

@data-pup data-pup merged commit 4b59161 into bytecodealliance:master Jan 10, 2020
@data-pup data-pup deleted the module-bindings-tests branch January 10, 2020 14:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants