# tmuxtest.RequireVersion

- **Module:** tmuxtest
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-go/blob/068da4f165ba859294dac4cfbd77ee3f660ad78a/tmux/tmuxtest/harness.go#L126
- **Page:** https://libtmux.org/en/go/latest/reference/tmuxtest-requireversion/

```
func RequireVersion(
	ctx context.Context,
	t testing.TB,
	server tmux.Server,
	minimum string,
)
```

RequireVersion skips a feature's positive test when the selected daemon, or the executable that would start it, is older than minimum. Other version-check failures fail the test. Refusal tests should call the operation directly.

## Parameters

- `ctx` (`context.Context`)
- `t` (`testing.TB`)
- `server` (`tmux.Server`)
- `minimum` (`string`)
