Files
kubesphere/pkg/simple/client/devops/jenkins/internal/common_test.go

15 lines
438 B
Go

package internal
import "testing"
func TestCommonSituation(t *testing.T) {
// make sure these functions do not panic
// I add these test cases because it's possible that users just do give the git source
AppendGitlabSourceToEtree(nil, nil)
AppendGithubSourceToEtree(nil, nil)
AppendBitbucketServerSourceToEtree(nil, nil)
AppendGitSourceToEtree(nil, nil)
AppendSingleSvnSourceToEtree(nil, nil)
AppendSvnSourceToEtree(nil, nil)
}