Top.Mail.Ru
package entitiestest — KubFly SDK for Go

KubFly SDK for Go / format/entitiestest

package entitiestest

import "kubfly.io/sdk/format/entitiestest"

Package entitiestest makes sample entities for the tests: every field the next number — as the Samples of the tests of the Java SDK make them, so the reference segments of sdk/spec hold the same values in every language.

Functions

func Sample

func Sample[T any]() *T

Sample is a sample of an entity: in the order of the fields, a boolean is whether the counter is even, an int the counter, a long the counter × 1000, a double the counter + 0.25, a float the counter + 0.5, a string "s" and the counter, a zone Europe/Moscow, a list one element; the platform is the JVM.