Files
kata-containers/virtcontainers/cc_proxy_test.go
Peng Tao d75841ef23 ut: add more UTs
Let's make codecov happier;)

Signed-off-by: Peng Tao <bergwolf@gmail.com>
2018-09-14 08:54:55 +08:00

29 lines
426 B
Go

// Copyright (c) 2017 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
//
package virtcontainers
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestCCProxyStart(t *testing.T) {
proxy := &ccProxy{}
testProxyStart(t, nil, proxy)
}
func TestCCProxy(t *testing.T) {
proxy := &ccProxy{}
assert := assert.New(t)
err := proxy.stop(0)
assert.Nil(err)
assert.False(proxy.consoleWatched())
}