mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-10-22 20:39:41 +00:00
When imported, the vc files carried in the 'full style' apache license text, but the standard for kata is to use SPDX style. Update the relevant files to SPDX. Fixes: #227 Signed-off-by: Graham whaley <graham.whaley@intel.com>
29 lines
594 B
Go
29 lines
594 B
Go
// Copyright (c) 2017 Intel Corporation
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
package virtcontainers
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func testIsSandbox(t *testing.T, cType ContainerType, expected bool) {
|
|
if result := cType.IsSandbox(); result != expected {
|
|
t.Fatalf("Got %t, Expecting %t", result, expected)
|
|
}
|
|
}
|
|
|
|
func TestIsPodSandboxTrue(t *testing.T) {
|
|
testIsSandbox(t, PodSandbox, true)
|
|
}
|
|
|
|
func TestIsPodContainerFalse(t *testing.T) {
|
|
testIsSandbox(t, PodContainer, false)
|
|
}
|
|
|
|
func TestIsSandboxUnknownContainerTypeFalse(t *testing.T) {
|
|
testIsSandbox(t, UnknownContainerType, false)
|
|
}
|