Documentation
¶
Index ¶
- func FormatTestFile(src string) string
- func GetDiff(opts types.DiffOptions) ([]types.DiffFile, error)
- func ParseDiffContent(raw string) ([]types.DiffFile, error)
- type CacheEntry
- type ContractInfo
- type DeepASTAnalyzer
- type FingerprintResult
- type FingerprintSignal
- type Fingerprinter
- type FuzzEngine
- type FuzzError
- type FuzzOutput
- type FuzzResult
- type History
- type HistoryEntry
- type IntentAnalyzer
- type IntentResult
- type LogicDetector
- type PackageResult
- type ParamInfo
- type ReturnInfo
- type ScanCache
- func (c *ScanCache) Clear()
- func (c *ScanCache) Enabled() bool
- func (c *ScanCache) Flush()
- func (c *ScanCache) Get(path, content string) ([]types.Finding, int, bool)
- func (c *ScanCache) Invalidate(path string)
- func (c *ScanCache) Set(path, content string, findings []types.Finding, score int)
- func (c *ScanCache) SetEnabled(enabled bool)
- type Scanner
- type SecurityScanner
- type SemanticAnalyzer
- type StaticAnalyzer
- type TestGenerator
- type VerificationEngine
- type Watcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatTestFile ¶
Types ¶
type CacheEntry ¶
type ContractInfo ¶
type DeepASTAnalyzer ¶
type DeepASTAnalyzer struct{}
func NewDeepASTAnalyzer ¶
func NewDeepASTAnalyzer() *DeepASTAnalyzer
type FingerprintResult ¶
type FingerprintResult struct {
Score int `json:"score"`
Signals []FingerprintSignal `json:"signals"`
Verdict string `json:"verdict"`
}
type FingerprintSignal ¶
type Fingerprinter ¶
type Fingerprinter struct{}
func NewFingerprinter ¶
func NewFingerprinter() *Fingerprinter
func (*Fingerprinter) Analyze ¶
func (f *Fingerprinter) Analyze(content, path string) FingerprintResult
type FuzzEngine ¶
type FuzzEngine struct {
// contains filtered or unexported fields
}
func NewFuzzEngine ¶
func NewFuzzEngine(iterations int) *FuzzEngine
func (*FuzzEngine) Cleanup ¶
func (e *FuzzEngine) Cleanup(files []types.DiffFile)
func (*FuzzEngine) Fuzz ¶
func (e *FuzzEngine) Fuzz(files []types.DiffFile) FuzzOutput
func (*FuzzEngine) RunTests ¶
func (e *FuzzEngine) RunTests(files []types.DiffFile) []FuzzResult
type FuzzOutput ¶
type FuzzOutput struct {
Functions []FuzzResult `json:"functions"`
Total int `json:"total"`
FilesScanned int `json:"files_scanned"`
Errors int `json:"errors"`
}
type FuzzResult ¶
type History ¶
type History struct {
Entries []HistoryEntry `json:"entries"`
// contains filtered or unexported fields
}
func LoadHistory ¶
func (*History) Compare ¶
func (h *History) Compare(entry HistoryEntry) string
type HistoryEntry ¶
type IntentAnalyzer ¶
type IntentAnalyzer struct {
// contains filtered or unexported fields
}
func NewIntentAnalyzer ¶
func NewIntentAnalyzer(provider llm.Provider) *IntentAnalyzer
func (*IntentAnalyzer) Analyze ¶
func (a *IntentAnalyzer) Analyze(ctx context.Context, files []types.DiffFile, opts types.DiffOptions) ([]IntentResult, error)
type IntentResult ¶
type LogicDetector ¶
type LogicDetector struct{}
func NewLogicDetector ¶
func NewLogicDetector() *LogicDetector
type PackageResult ¶
type PackageResult struct {
Path string `json:"path"`
Result *types.ScanResult `json:"result"`
Error string `json:"error,omitempty"`
}
type ReturnInfo ¶
type ReturnInfo struct {
Type string
}
type ScanCache ¶
type ScanCache struct {
// contains filtered or unexported fields
}
func NewScanCache ¶
func (*ScanCache) Invalidate ¶
func (*ScanCache) SetEnabled ¶
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
func (*Scanner) FlushCache ¶
func (s *Scanner) FlushCache()
func (*Scanner) Scan ¶
func (s *Scanner) Scan(ctx context.Context, opts types.DiffOptions) (*types.ScanResult, error)
func (*Scanner) ScanAllPackages ¶
func (s *Scanner) ScanAllPackages(ctx context.Context, opts types.DiffOptions) ([]PackageResult, error)
func (*Scanner) SetCacheEnabled ¶
type SecurityScanner ¶
type SecurityScanner struct{}
func NewSecurityScanner ¶
func NewSecurityScanner() *SecurityScanner
type SemanticAnalyzer ¶
type SemanticAnalyzer struct {
// contains filtered or unexported fields
}
func NewSemanticAnalyzer ¶
func NewSemanticAnalyzer(provider llm.Provider) *SemanticAnalyzer
type StaticAnalyzer ¶
type StaticAnalyzer struct{}
func NewStaticAnalyzer ¶
func NewStaticAnalyzer() *StaticAnalyzer
type TestGenerator ¶
type TestGenerator struct{}
func NewTestGenerator ¶
func NewTestGenerator() *TestGenerator
func (*TestGenerator) GenerateTests ¶
type VerificationEngine ¶
type VerificationEngine struct{}
func NewVerificationEngine ¶
func NewVerificationEngine() *VerificationEngine
Click to show internal directories.
Click to hide internal directories.