blob: 999b0860292f070bd31956a5716b412467c28a66 [file] [log] [blame]
// Copyright 2016 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package vdltest
// vdlEntry represents a test entry, which contains a target and source value.
// Each test converts the source value to the type of the target value, and
// either passes or fails.
//
// An entry may either be canonical or not. For a given canonical entry C,
// C.Target==C.Source always holds, and in addition, C.Source is the canonical
// representation of the value.
type vdlEntry struct {
IsCanonical bool
Label string // Label describes the entry, e.g. Full, Random...
TargetLabel string // TargetLabel describes the Target value
Target any // Target value for conversion test
SourceLabel string // SourceLabel describes the Source value
Source any // Source value for conversion test
}