runtime_test.go 426 字节
Newer Older
Y
Yaron Schneider 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
package runtime

import (
	"testing"

	"github.com/actionscore/actions/pkg/config"
)

func TestNewRuntime(t *testing.T) {
	r := NewActionsRuntime(&RuntimeConfig{}, &config.Configuration{})
	if r == nil {
		t.Error(
			"Expected success but got nil",
		)
	}
}

func TestConfig(t *testing.T) {
	c := NewRuntimeConfig("", "", "", "", "", "", "", "", 0, 0, 0)
	if c == nil {
		t.Error(
			"Expected success but got nil",
		)
	}
}