indexer

package
v0.1.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2023 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseIndexer

type BaseIndexer struct {
	// contains filtered or unexported fields
}

func (*BaseIndexer) GetCaseSet

func (baseIndexer *BaseIndexer) GetCaseSet() map[string]interface{}

func (*BaseIndexer) GetFuncWithSignature

func (baseIndexer *BaseIndexer) GetFuncWithSignature(ctx context.Context, s string) (*openapi.ObjectFunctionWithSignature, error)

func (*BaseIndexer) GetSibylCache

func (baseIndexer *BaseIndexer) GetSibylCache() *sibyl2.FuncGraph

func (*BaseIndexer) GetVertexesWithSignature

func (baseIndexer *BaseIndexer) GetVertexesWithSignature(s string) []string

func (*BaseIndexer) TagCase

func (baseIndexer *BaseIndexer) TagCase(caseSignature string, ctx context.Context) error

func (*BaseIndexer) UploadSrc

func (baseIndexer *BaseIndexer) UploadSrc(_ context.Context) error

type BaseIndexerPart

type BaseIndexerPart interface {
	UploadSrc(ctx context.Context) error
	GetCaseSet() map[string]interface{}
	GetSibylCache() *sibyl2.FuncGraph
	GetVertexesWithSignature(s string) []string
	GetFuncWithSignature(ctx context.Context, s string) (*openapi.ObjectFunctionWithSignature, error)
}

type GoIndexer

type GoIndexer struct {
	*BaseIndexer
}

func (*GoIndexer) TagCases

func (i *GoIndexer) TagCases(ctx context.Context) error

type Indexer

type Indexer interface {
	BaseIndexerPart
	// TagCases different framework should have different rules
	TagCases(ctx context.Context) error
}

func GetIndexer

func GetIndexer(indexerType object.IndexerType, config *object.SharedConfig) (Indexer, error)

type JavaJunitIndexer

type JavaJunitIndexer struct {
	*BaseIndexer
}

func (*JavaJunitIndexer) TagCases

func (j *JavaJunitIndexer) TagCases(ctx context.Context) error

type PythonPytestIndexer

type PythonPytestIndexer struct {
	*BaseIndexer
}

func (*PythonPytestIndexer) TagCases

func (p *PythonPytestIndexer) TagCases(ctx context.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL