_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c9300
train
// NextInt64 create a random int64 using the underlying Rng.
{ "resource": "" }
c9301
train
// NextUint64 create a random uint64 using the underlying Rng.
{ "resource": "" }
c9302
train
// DefaultGenParameters creates default GenParameters.
{ "resource": "" }
c9303
train
// Float64Range generates float64 numbers within a given range
{ "resource": "" }
c9304
train
// Float64 generates arbitrary float64 numbers that do not contain NaN or Inf
{ "resource": "" }
c9305
train
// Float32Range generates float32 numbers within a given range
{ "resource": "" }
c9306
train
// Float32 generates arbitrary float32 numbers that do not contain NaN or Inf
{ "resource": "" }
c9307
train
// StringShrinker is a shrinker for strings. // It is very similar to a sliace shrinker just that the elements themselves will not be shrinkeed.
{ "resource": "" }
c9308
train
// NewProperties create new Properties with given test parameters. // If parameters is nil default test parameters will be used
{ "resource": "" }
c9309
train
// Run checks all definied propertiesand reports the result
{ "resource": "" }
c9310
train
// WithLabel adds a label to a generated value. // Labels are usually used for reporting for the arguments of a property check.
{ "resource": "" }
c9311
train
// WithShrinker creates a derived generator with a specific shrinker
{ "resource": "" }
c9312
train
// FlatMap creates a derived generator by passing a generated value to a function which itself // creates a generator.
{ "resource": "" }
c9313
train
// SliceOfN generates a slice of generated elements with definied length
{ "resource": "" }
c9314
train
// 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
{ "resource": "" }
c9315
train
// 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 ...
{ "resource": "" }
c9316
train
// MapShrinker creates a map shrinker from shrinker for the key values. // The length of the map will be shrunk as well
{ "resource": "" }
c9317
train
// RegexMatch generates matches for a given regular expression // regexStr is supposed to conform to the perl regular expression syntax
{ "resource": "" }
c9318
train
// PtrShrinker convert a value shrinker to a pointer to value shrinker
{ "resource": "" }
c9319
train
// NewPropResult create a PropResult with label
{ "resource": "" }
c9320
train
// Success checks if the result was successful
{ "resource": "" }
c9321
train
// WithArgs sets argument descriptors to the PropResult for reporting
{ "resource": "" }
c9322
train
// AddArgs add argument descriptors to the PropResult for reporting
{ "resource": "" }
c9323
train
// And combines two PropResult by an and operation. // The resulting PropResult will be only true if both PropResults are true.
{ "resource": "" }
c9324
train
// NewLockedSource takes a seed and returns a new // lockedSource for use with rand.New
{ "resource": "" }
c9325
train
// seedPos implements Seed for a lockedSource without a race condition.
{ "resource": "" }
c9326
train
// read implements Read for a lockedSource without a race condition.
{ "resource": "" }
c9327
train
// NewPropArg creates a new PropArg.
{ "resource": "" }
c9328
train
// 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.
{ "resource": "" }
c9329
train
// 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
{ "resource": "" }
c9330
train
// GenCommand provides a generator for applicable commands to for a state
{ "resource": "" }
c9331
train
// GenInitialState provides a generator for the initial State
{ "resource": "" }
c9332
train
// InitialPreCondition checks if the initial state is valid
{ "resource": "" }
c9333
train
// Prop creates a gopter.Prop from Commands
{ "resource": "" }
c9334
train
// DefaultArbitraries creates a default arbitrary context with the widest // possible ranges for all types.
{ "resource": "" }
c9335
train
// GenForType gets a generator for a generator for a type
{ "resource": "" }
c9336
train
// RegisterGen registers a generator
{ "resource": "" }
c9337
train
// Complex128 generate arbitrary complex128 numbers
{ "resource": "" }
c9338
train
// Complex64 generate arbitrary complex64 numbers
{ "resource": "" }
c9339
train
// 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.
{ "resource": "" }
c9340
train
// 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.
{ "resource": "" }
c9341
train
// 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.
{ "resource": "" }
c9342
train
// Int64Range generates int64 numbers within a given range
{ "resource": "" }
c9343
train
// UInt64Range generates uint64 numbers within a given range
{ "resource": "" }
c9344
train
// Int32Range generates int32 numbers within a given range
{ "resource": "" }
c9345
train
// UInt32Range generates uint32 numbers within a given range
{ "resource": "" }
c9346
train
// Int16Range generates int16 numbers within a given range
{ "resource": "" }
c9347
train
// UInt16Range generates uint16 numbers within a given range
{ "resource": "" }
c9348
train
// Int8Range generates int8 numbers within a given range
{ "resource": "" }
c9349
train
// UInt8Range generates uint8 numbers within a given range
{ "resource": "" }
c9350
train
// IntRange generates int numbers within a given range
{ "resource": "" }
c9351
train
// Int generate arbitrary int numbers
{ "resource": "" }
c9352
train
// UIntRange generates uint numbers within a given range
{ "resource": "" }
c9353
train
// UInt generate arbitrary uint numbers
{ "resource": "" }
c9354
train
// Size just extracts the MaxSize field of the GenParameters. // This can be helpful to generate limited integer value in a more structued // manner.
{ "resource": "" }
c9355
train
// 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
{ "resource": "" }
c9356
train
// Int64Shrinker is a shrinker for int64 numbers
{ "resource": "" }
c9357
train
// UInt64Shrinker is a shrinker for uint64 numbers
{ "resource": "" }
c9358
train
// Int32Shrinker is a shrinker for int32 numbers
{ "resource": "" }
c9359
train
// UInt32Shrinker is a shrinker for uint32 numbers
{ "resource": "" }
c9360
train
// Int16Shrinker is a shrinker for int16 numbers
{ "resource": "" }
c9361
train
// UInt16Shrinker is a shrinker for uint16 numbers
{ "resource": "" }
c9362
train
// Int8Shrinker is a shrinker for int8 numbers
{ "resource": "" }
c9363
train
// UInt8Shrinker is a shrinker for uint8 numbers
{ "resource": "" }
c9364
train
// IntShrinker is a shrinker for int numbers
{ "resource": "" }
c9365
train
// UIntShrinker is a shrinker for uint numbers
{ "resource": "" }
c9366
train
// TimeShrinker is a shrinker for time.Time structs
{ "resource": "" }
c9367
train
// 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.
{ "resource": "" }
c9368
train
// Const creates a generator for a constant value // Not the most exciting generator, but can be helpful from time to time
{ "resource": "" }
c9369
train
// OneConstOf generate one of a list of constant values
{ "resource": "" }
c9370
train
// OneGenOf generate one value from a a list of generators
{ "resource": "" }
c9371
train
// Float64Shrinker is a shrinker for float64 numbers
{ "resource": "" }
c9372
train
// Float32Shrinker is a shrinker for float32 numbers
{ "resource": "" }
c9373
train
// ForAll1 legacy interface to be removed in the future
{ "resource": "" }
c9374
train
// Bool generates an arbitrary bool value
{ "resource": "" }
c9375
train
// SaveProp creates s save property by handling all panics from an inner property
{ "resource": "" }
c9376
train
// Check the property using specific parameters
{ "resource": "" }
c9377
train
// Fail is a generator that always fails to generate a value // Useful as fallback
{ "resource": "" }
c9378
train
// PtrOf generates either a pointer to a generated element or a nil pointer
{ "resource": "" }
c9379
train
// ConvertUp calls the Upstream function on the arguments in the down array // and returns the results.
{ "resource": "" }
c9380
train
// ConvertDown calls the Downstream function on the elements of the up array // and returns the results.
{ "resource": "" }
c9381
train
// Filter creates a shrink filtered by a condition
{ "resource": "" }
c9382
train
// All collects all shrinks as a slice. Use with care as this might create // large results depending on the complexity of the shrink
{ "resource": "" }
c9383
train
// ConcatShrinks concats an array of shrinks to a single shrinks
{ "resource": "" }
c9384
train
// Interleave this shrink with another // Both shrinks are expected to produce the same result
{ "resource": "" }
c9385
train
// RuneRange generates runes within a given range
{ "resource": "" }
c9386
train
// Rune generates an arbitrary character rune
{ "resource": "" }
c9387
train
// UnicodeChar generates arbitrary character runes with a given unicode table
{ "resource": "" }
c9388
train
// Identifier generates an arbitrary identifier string // Identitiers are supporsed to start with a lowercase letter and contain only // letters and digits
{ "resource": "" }
c9389
train
// UnicodeString generates an arbitrary string from a given // unicode table.
{ "resource": "" }
c9390
train
// addToBridge attch interface to the bridge, // we only support ovs bridge and linux bridge at present.
{ "resource": "" }
c9391
train
//Device Failed as api.Result
{ "resource": "" }
c9392
train
// Must be C.libxl_bitmap_dispose'd of afterwards
{ "resource": "" }
c9393
train
// NewKataAgent create a SandboxAgent with kata protocol
{ "resource": "" }
c9394
train
// 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
{ "resource": "" }
c9395
train
// 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
{ "resource": "" }
c9396
train
// ReleaseIP adds the provided ip back into the pool of // available ips to be returned for use.
{ "resource": "" }
c9397
train
// return an available ip if one is currently available. If not, // return the next available ip for the network
{ "resource": "" }
c9398
train
// Converts a 4 bytes IP into a 128 bit integer
{ "resource": "" }
c9399
train
// Converts 128 bit integer into a 4 bytes IP address
{ "resource": "" }