_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c9300
// NextInt64 create a random int64 using the underlying Rng.
c9301
// NextUint64 create a random uint64 using the underlying Rng.
c9302
// DefaultGenParameters creates default GenParameters.
c9303
// Float64Range generates float64 numbers within a given range
c9304
// Float64 generates arbitrary float64 numbers that do not contain NaN or Inf
c9305
// Float32Range generates float32 numbers within a given range
c9306
// Float32 generates arbitrary float32 numbers that do not contain NaN or Inf
c9307
// StringShrinker is a shrinker for strings. // It is very similar to a sliace shrinker just that the elements themselves will not be shrinkeed.
c9308
// NewProperties create new Properties with given test parameters. // If parameters is nil default test parameters will be used
c9309
// Run checks all definied propertiesand reports the result
c9310
// WithLabel adds a label to a generated value. // Labels are usually used for reporting for the arguments of a property check.
c9311
// WithShrinker creates a derived generator with a specific shrinker
c9312
// FlatMap creates a derived generator by passing a generated value to a function which itself // creates a generator.
c9313
// SliceOfN generates a slice of generated elements with definied length
c9314
// Struct generates a given struct type. // rt has to be the reflect type of the struct, gens contains a map of field generators. // Note that the result types of the generators in gen have to match the type of the correspoinding // field in the struct. Also note that only public fields of a struct can be generated
c9315
// StructPtr generates pointers to a given struct type. // Note that StructPtr does not generate nil, if you want to include nil in your // testing you should combine gen.PtrOf with gen.Struct. // rt has to be the reflect type of the struct, gens contains a map of field generators. // Note that the result types of the ...
c9316
// MapShrinker creates a map shrinker from shrinker for the key values. // The length of the map will be shrunk as well
c9317
// RegexMatch generates matches for a given regular expression // regexStr is supposed to conform to the perl regular expression syntax
c9318
// PtrShrinker convert a value shrinker to a pointer to value shrinker
c9319
// NewPropResult create a PropResult with label
c9320
// Success checks if the result was successful
c9321
// WithArgs sets argument descriptors to the PropResult for reporting
c9322
// AddArgs add argument descriptors to the PropResult for reporting
c9323
// And combines two PropResult by an and operation. // The resulting PropResult will be only true if both PropResults are true.
c9324
// NewLockedSource takes a seed and returns a new // lockedSource for use with rand.New
c9325
// seedPos implements Seed for a lockedSource without a race condition.
c9326
// read implements Read for a lockedSource without a race condition.
c9327
// NewPropArg creates a new PropArg.
c9328
// SliceShrinkerOne creates a slice shrinker from a shrinker for the elements of the slice. // The length of the slice will remains unchanged, instead each element is shrunk after the // other.
c9329
// ForAllNoShrink1 creates a property that requires the check condition to be true for all values // As the name suggests the generated values will not be shrunk if the condition falsiies
c9330
// GenCommand provides a generator for applicable commands to for a state
c9331
// GenInitialState provides a generator for the initial State
c9332
// InitialPreCondition checks if the initial state is valid
c9333
// Prop creates a gopter.Prop from Commands
c9334
// DefaultArbitraries creates a default arbitrary context with the widest // possible ranges for all types.
c9335
// GenForType gets a generator for a generator for a type
c9336
// RegisterGen registers a generator
c9337
// Complex128 generate arbitrary complex128 numbers
c9338
// Complex64 generate arbitrary complex64 numbers
c9339
// Sized derives a generator from based on size // This honors the `MinSize` and `MaxSize` of the `GenParameters` of the test suite. // Keep an eye on memory consumption, by default MaxSize is 100.
c9340
// Retrieve gets the concrete generator result. // If the result is invalid or does not pass the sieve there is no concrete // value and the property using the generator should be undecided.
c9341
// RetrieveAsValue get the concrete generator result as reflect value. // If the result is invalid or does not pass the sieve there is no concrete // value and the property using the generator should be undecided.
c9342
// Int64Range generates int64 numbers within a given range
c9343
// UInt64Range generates uint64 numbers within a given range
c9344
// Int32Range generates int32 numbers within a given range
c9345
// UInt32Range generates uint32 numbers within a given range
c9346
// Int16Range generates int16 numbers within a given range
c9347
// UInt16Range generates uint16 numbers within a given range
c9348
// Int8Range generates int8 numbers within a given range
c9349
// UInt8Range generates uint8 numbers within a given range
c9350
// IntRange generates int numbers within a given range
c9351
// Int generate arbitrary int numbers
c9352
// UIntRange generates uint numbers within a given range
c9353
// UInt generate arbitrary uint numbers
c9354
// Size just extracts the MaxSize field of the GenParameters. // This can be helpful to generate limited integer value in a more structued // manner.
c9355
// NewFormatedReporter create a new formated reporter // verbose toggles verbose output of the property results // width is the maximal width per line // output is the writer were the report will be written to
c9356
// Int64Shrinker is a shrinker for int64 numbers
c9357
// UInt64Shrinker is a shrinker for uint64 numbers
c9358
// Int32Shrinker is a shrinker for int32 numbers
c9359
// UInt32Shrinker is a shrinker for uint32 numbers
c9360
// Int16Shrinker is a shrinker for int16 numbers
c9361
// UInt16Shrinker is a shrinker for uint16 numbers
c9362
// Int8Shrinker is a shrinker for int8 numbers
c9363
// UInt8Shrinker is a shrinker for uint8 numbers
c9364
// IntShrinker is a shrinker for int numbers
c9365
// UIntShrinker is a shrinker for uint numbers
c9366
// TimeShrinker is a shrinker for time.Time structs
c9367
// Weighted combines multiple generators, where each generator has a weight. // The weight of a generator is proportional to the probability that the // generator gets selected.
c9368
// Const creates a generator for a constant value // Not the most exciting generator, but can be helpful from time to time
c9369
// OneConstOf generate one of a list of constant values
c9370
// OneGenOf generate one value from a a list of generators
c9371
// Float64Shrinker is a shrinker for float64 numbers
c9372
// Float32Shrinker is a shrinker for float32 numbers
c9373
// ForAll1 legacy interface to be removed in the future
c9374
// Bool generates an arbitrary bool value
c9375
// SaveProp creates s save property by handling all panics from an inner property
c9376
// Check the property using specific parameters
c9377
// Fail is a generator that always fails to generate a value // Useful as fallback
c9378
// PtrOf generates either a pointer to a generated element or a nil pointer
c9379
// ConvertUp calls the Upstream function on the arguments in the down array // and returns the results.
c9380
// ConvertDown calls the Downstream function on the elements of the up array // and returns the results.
c9381
// Filter creates a shrink filtered by a condition
c9382
// All collects all shrinks as a slice. Use with care as this might create // large results depending on the complexity of the shrink
c9383
// ConcatShrinks concats an array of shrinks to a single shrinks
c9384
// Interleave this shrink with another // Both shrinks are expected to produce the same result
c9385
// RuneRange generates runes within a given range
c9386
// Rune generates an arbitrary character rune
c9387
// UnicodeChar generates arbitrary character runes with a given unicode table
c9388
// Identifier generates an arbitrary identifier string // Identitiers are supporsed to start with a lowercase letter and contain only // letters and digits
c9389
// UnicodeString generates an arbitrary string from a given // unicode table.
c9390
// addToBridge attch interface to the bridge, // we only support ovs bridge and linux bridge at present.
c9391
//Device Failed as api.Result
c9392
// Must be C.libxl_bitmap_dispose'd of afterwards
c9393
// NewKataAgent create a SandboxAgent with kata protocol
c9394
// RegisterSubnet registers network in global allocator with bounds // defined by subnet. If you want to use network range you must call // this method before first RequestIP, otherwise full network range will be used
c9395
// RequestIP requests an available ip from the given network. It // will return the next available ip if the ip provided is nil. If the // ip provided is not nil it will validate that the provided ip is available // for use or return an error
c9396
// ReleaseIP adds the provided ip back into the pool of // available ips to be returned for use.
c9397
// return an available ip if one is currently available. If not, // return the next available ip for the network
c9398
// Converts a 4 bytes IP into a 128 bit integer
c9399
// Converts 128 bit integer into a 4 bytes IP address