MCPcopy
hub / github.com/opencontainers/runc / TestValidate

Function TestValidate

libcontainer/configs/validate/validator_test.go:15–24  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

13)
14
15func TestValidate(t *testing.T) {
16 config := &configs.Config{
17 Rootfs: "/var",
18 }
19
20 err := Validate(config)
21 if err != nil {
22 t.Errorf("Expected error to not occur: %+v", err)
23 }
24}
25
26func TestValidateWithInvalidRootfs(t *testing.T) {
27 dir := "rootfs"

Callers

nothing calls this directly

Calls 1

ValidateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…