Documentation ¶
Index ¶
- func FCharInvalidR1(fieldName string, fieldType string, fieldMin int, fieldMax int) interface{}
- func FCharValidR1(fieldName string, fieldType string, fieldMin int, fieldMax int) interface{}
- func FCharValidR2(fieldName string, fieldType string, fieldMin int, fieldMax int) interface{}
- func FCharValidR3(fieldName string, fieldType string, fieldMin int, fieldMax int) interface{}
- func FCharValidR4(fieldName string, fieldType string, fieldMin int, fieldMax int) interface{}
- func FNumValidR1(fieldName string, fieldType string, fieldMin int, fieldMax int) interface{}
- func FNumValidR2(fieldName string, fieldType string, fieldMin int, fieldMax int) interface{}
- func FNumValidR3(fieldName string, fieldType string, fieldMin int, fieldMax int) interface{}
- func FNumValidR4(fieldName string, fieldType string, fieldMin int, fieldMax int) interface{}
- func FNumValidR5(fieldName string, fieldType string, fieldMin int, fieldMax int) interface{}
- func FNumValidR6(fieldName string, fieldType string, fieldMin int, fieldMax int) interface{}
- func FuzzRulesMapping(key string) []interface{}
- func GenerateFuzzInvalidDataFiles(fuzzFile string, fuzzData FuzzData)
- func GenerateFuzzValidDataFiles(fuzzFile string, fuzzData FuzzData)
- func GetCombinationInvalid(validVectors [][]interface{}, invalidVectors [][]interface{}, pwLength int) [][]interface{}
- func GetInvalidTcData(fuzzData FuzzData, pwLength int) [][]interface{}
- func GetInvalidVectors(fuzzData FuzzData) [][]interface{}
- func GetPairWiseValid(validVectors [][]interface{}, pwLength int) [][]interface{}
- func GetValidTcData(fuzzData FuzzData, pwLength int) [][]interface{}
- func GetValidVectors(fuzzData FuzzData) [][]interface{}
- func PrepFuzzTest()
- type FieldDefinition
- type FieldDefinitions
- type FuzzData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FCharInvalidR1 ¶
invalid
func FCharValidR1 ¶
valid fieldMin, rands.RandStringRunes
func FCharValidR2 ¶
func FCharValidR3 ¶
func FCharValidR4 ¶
func FNumValidR1 ¶
int ---
func FNumValidR2 ¶
func FNumValidR3 ¶
func FNumValidR4 ¶
func FNumValidR5 ¶
func FNumValidR6 ¶
func FuzzRulesMapping ¶
func FuzzRulesMapping(key string) []interface{}
func GetCombinationInvalid ¶
func GetCombinationInvalid(validVectors [][]interface{}, invalidVectors [][]interface{}, pwLength int) [][]interface{}
-- for the fuzz data
func GetInvalidTcData ¶
func GetInvalidVectors ¶
func GetInvalidVectors(fuzzData FuzzData) [][]interface{}
func GetPairWiseValid ¶
func GetPairWiseValid(validVectors [][]interface{}, pwLength int) [][]interface{}
func GetValidTcData ¶
func GetValidVectors ¶
func GetValidVectors(fuzzData FuzzData) [][]interface{}
func PrepFuzzTest ¶
func PrepFuzzTest()
Types ¶
type FieldDefinition ¶
type FieldDefinition struct { FieldName string FieldType string FieldSubType string FieldMin int FieldMax int ArrayRaw []interface{} Default interface{} }
func (FieldDefinition) CallFuzzRules ¶
func (fieldDefinition FieldDefinition) CallFuzzRules(key string) []interface{}
func (FieldDefinition) DetermineFuzzInvalidType ¶
func (fD FieldDefinition) DetermineFuzzInvalidType() string
fuzz - random - invalid
func (FieldDefinition) DetermineFuzzValidType ¶
func (fD FieldDefinition) DetermineFuzzValidType() string
fuzz - random - valid
type FieldDefinitions ¶
type FieldDefinitions []*FieldDefinition
type FuzzData ¶
type FuzzData struct { ValidData []map[string][]interface{} InvalidData []map[string][]interface{} ValidStatusCode int InvalidStatusCode int }
valid, invalid data may have more than one field, but the map itself can not ensure the key sequence so that, here use slice
func GenerateFuzzData ¶
to get the fuzz data table files with naming fuzzcase_fuzz_dt_valid.csv / fuzzcase_fuzz_dt_invalid.csv
Click to show internal directories.
Click to hide internal directories.