Page MenuHomePhabricator

Create a Trivial Unit Test Using Rust
Closed, ResolvedPublic

Description

Description

Research unit testing libraries and create a simple example. This can be as trivial as

// file: source.rs
fn return_boot() {
  "boot"
}
// file: test/source.rs
// do something to assert that return_boot() == "boot"

Desired behavior/Acceptance criteria (returned value, expected error, performance expectations, etc.)

  • a demonstration of Rust unit testing

Completion checklist

Details

Related Changes in Gerrit:
Related Changes in GitLab:
TitleReferenceAuthorSource BranchDest Branch
Add more unit tests for Rust executorrepos/abstract-wiki/wikifunctions/function-evaluator!278apineapine-rustmain
Customize query in GitLab

Event Timeline

Change #1105363 had a related patch set uploaded (by Jforrester; author: Jforrester):

[operations/deployment-charts@master] wikifunctions: Upgrade evaluators from 2024-11-26-193226 to 2024-12-16-202347

https://gerrit.wikimedia.org/r/1105363

Change #1105363 merged by jenkins-bot:

[operations/deployment-charts@master] wikifunctions: Upgrade evaluators from 2024-11-26-193226 to 2024-12-16-202347

https://gerrit.wikimedia.org/r/1105363