github.com/kubeshop/testkube@v1.17.23/pkg/test/detector/interface.go (about)

     1  package detector
     2  
     3  import (
     4  	apiClient "github.com/kubeshop/testkube/pkg/api/v1/client"
     5  )
     6  
     7  // Adapter defines methods for test detection
     8  type Adapter interface {
     9  	// Is detects based on upsert test options what kind of test it is
    10  	Is(options apiClient.UpsertTestOptions) (string, bool)
    11  	// IsWithPath detects based on path(extension) what kind of test it is
    12  	IsWithPath(path string, options apiClient.UpsertTestOptions) (string, bool)
    13  	// GetType returns test type
    14  	GetType() string
    15  }