-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.go
More file actions
31 lines (27 loc) · 1.09 KB
/
types.go
File metadata and controls
31 lines (27 loc) · 1.09 KB
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
26
27
28
29
30
31
package main
// FailureStage represents the stage at which a WASM module failed
type FailureStage string
const (
StageNone FailureStage = "none"
StageLoad FailureStage = "load"
StageValidate FailureStage = "validate"
StageInstantiate FailureStage = "instantiate"
StageExecute FailureStage = "execute"
)
// ExecutionResult holds the structured result for a single WASM file
type ExecutionResult struct {
FilePath string `json:"file_path"`
FileName string `json:"file_name"`
Success bool `json:"success"`
FailureStage FailureStage `json:"failure_stage"`
ErrorMessage string `json:"error_message,omitempty"`
ReturnValues []interface{} `json:"return_values,omitempty"`
}
// FuzzingReport holds the complete report for all processed files
type FuzzingReport struct {
TotalFiles int `json:"total_files"`
Passed int `json:"passed"`
Failed int `json:"failed"`
Results []ExecutionResult `json:"results"`
FailureCounts map[FailureStage]int `json:"failure_counts"`
}