module: test empty/minimal module
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
388a1fbfca
commit
cd2f3fbc3f
1 changed files with 4 additions and 0 deletions
|
|
@ -791,6 +791,9 @@ test "dispatch" {
|
|||
var foo = struct {
|
||||
injected_args_sum: usize = 0,
|
||||
}{};
|
||||
const Minimal = Module(struct {
|
||||
pub const name = .engine_minimal;
|
||||
});
|
||||
const Physics = Module(struct {
|
||||
pub const name = .engine_physics;
|
||||
pub const components = struct {};
|
||||
|
|
@ -836,6 +839,7 @@ test "dispatch" {
|
|||
|
||||
const injectable = .{&foo};
|
||||
var modules: Modules(.{
|
||||
Minimal,
|
||||
Physics,
|
||||
Renderer,
|
||||
}, @TypeOf(injectable)) = undefined;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue