[][src]Crate rune_testing

Read the Book 📖

Build Status Book Status Chat on Discord

A crate use to simplify testing small rune programs.

This is a crate used with the Rune language.

Re-exports

pub use rune::CompileError::*;
pub use rune::ParseError::*;
pub use rune::Warning::*;
pub use runestick::VmErrorKind::*;

Macros

assert_compile_error

Assert that the given rune program raises a compile error.

assert_parse

Assert that the given rune program parses.

assert_parse_error

Assert that the given parse error happens with the given rune program.

assert_vm_error

Assert that the given vm error happens with the given rune program.

assert_warnings

Assert that the given rune program parses, but raises the specified set of warnings.

rune

Run the given program and return the expected type from it.

Structs

FnPtr

A stored function, of some specific kind.

Span

A span corresponding to a range in the source file being parsed.

Enums

Meta

Metadata about an item in the context.

Value

An entry on the stack.

Functions

block_on

Run a future to completion on the current thread.

run

Call the specified function in the given script.

run_async

Call the specified function in the given script.

Type Definitions

Error

The error returned from our functions.

Result

The result returned from our functions.