Crate xtp_test

source ·

Functions§

  • Assert that the outcome is true, naming the assertion with msg, which will be used as a label in the CLI runner.
  • Assert that x and y are equal, naming the assertion with msg, which will be used as a label in the CLI runner.
  • Assert that x and y are not equal, naming the assertion with msg, which will be used as a label in the CLI runner.
  • Call a function from the Extism plugin being tested, passing input and returning its output Memory.
  • Call a function from the Extism plugin being tested, passing input and returning its output as a Vec.
  • Call a function from the Extism plugin being tested, passing input and returning its output as a string.
  • Run a test group, resetting the plugin after the group is run.
  • Reset the loaded plugin, clearing all state.
  • Call a function from the Extism plugin being tested, passing input and returning the time in nanoseconds spent in the fuction.
  • Call a function from the Extism plugin being tested, passing input and returning the time in seconds spent in the fuction.