| // Copyright 2015 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. |
| |
| // This file was auto-generated by the vanadium vdl tool. |
| // Package: data81 |
| |
| package data81 |
| |
| import ( |
| "v.io/v23/vdl" |
| "v.io/v23/vom/testdata/types" |
| ) |
| |
| var _ = __VDLInit() // Must be first; see __VDLInit comments for details. |
| |
| ////////////////////////////////////////////////// |
| // Const definitions |
| |
| // Tests contains the testcases to use to test vom encoding and decoding. |
| var Tests = []types.TestCase{ |
| { |
| Name: "true", |
| Value: vdl.ValueOf(true), |
| TypeString: "bool", |
| Hex: "810201", |
| HexVersion: "81", |
| HexValue: "0201", |
| }, |
| { |
| Name: "false", |
| Value: vdl.ValueOf(false), |
| TypeString: "bool", |
| Hex: "810200", |
| HexVersion: "81", |
| HexValue: "0200", |
| }, |
| { |
| Name: "\"\"", |
| Value: vdl.ValueOf(""), |
| TypeString: "string", |
| Hex: "810600", |
| HexVersion: "81", |
| HexValue: "0600", |
| }, |
| { |
| Name: "\"abc\"", |
| Value: vdl.ValueOf("abc"), |
| TypeString: "string", |
| Hex: "810603616263", |
| HexVersion: "81", |
| HexValue: "0603616263", |
| }, |
| { |
| Name: "[]byte(\"\")", |
| Value: vdl.ValueOf([]byte(nil)), |
| TypeString: "[]byte", |
| Hex: "814e00", |
| HexVersion: "81", |
| HexValue: "4e00", |
| }, |
| { |
| Name: "[]byte(\"\\xff\\x00\\x01\")", |
| Value: vdl.ValueOf([]byte("\xff\x00\x01")), |
| TypeString: "[]byte", |
| Hex: "814e03ff0001", |
| HexVersion: "81", |
| HexValue: "4e03ff0001", |
| }, |
| { |
| Name: "[]byte(\"adef\")", |
| Value: vdl.ValueOf([]byte("adef")), |
| TypeString: "[]byte", |
| Hex: "814e0461646566", |
| HexVersion: "81", |
| HexValue: "4e0461646566", |
| }, |
| { |
| Name: "byte(0)", |
| Value: vdl.ValueOf(byte(0)), |
| TypeString: "byte", |
| Hex: "810400", |
| HexVersion: "81", |
| HexValue: "0400", |
| }, |
| { |
| Name: "byte(127)", |
| Value: vdl.ValueOf(byte(127)), |
| TypeString: "byte", |
| Hex: "81047f", |
| HexVersion: "81", |
| HexValue: "047f", |
| }, |
| { |
| Name: "byte(255)", |
| Value: vdl.ValueOf(byte(255)), |
| TypeString: "byte", |
| Hex: "8104ffff", |
| HexVersion: "81", |
| HexValue: "04ffff", |
| }, |
| { |
| Name: "uint16(0)", |
| Value: vdl.ValueOf(uint16(0)), |
| TypeString: "uint16", |
| Hex: "810800", |
| HexVersion: "81", |
| HexValue: "0800", |
| }, |
| { |
| Name: "uint16(1)", |
| Value: vdl.ValueOf(uint16(1)), |
| TypeString: "uint16", |
| Hex: "810801", |
| HexVersion: "81", |
| HexValue: "0801", |
| }, |
| { |
| Name: "uint16(2)", |
| Value: vdl.ValueOf(uint16(2)), |
| TypeString: "uint16", |
| Hex: "810802", |
| HexVersion: "81", |
| HexValue: "0802", |
| }, |
| { |
| Name: "uint16(63)", |
| Value: vdl.ValueOf(uint16(63)), |
| TypeString: "uint16", |
| Hex: "81083f", |
| HexVersion: "81", |
| HexValue: "083f", |
| }, |
| { |
| Name: "uint16(64)", |
| Value: vdl.ValueOf(uint16(64)), |
| TypeString: "uint16", |
| Hex: "810840", |
| HexVersion: "81", |
| HexValue: "0840", |
| }, |
| { |
| Name: "uint16(127)", |
| Value: vdl.ValueOf(uint16(127)), |
| TypeString: "uint16", |
| Hex: "81087f", |
| HexVersion: "81", |
| HexValue: "087f", |
| }, |
| { |
| Name: "uint16(128)", |
| Value: vdl.ValueOf(uint16(128)), |
| TypeString: "uint16", |
| Hex: "8108ff80", |
| HexVersion: "81", |
| HexValue: "08ff80", |
| }, |
| { |
| Name: "uint16(255)", |
| Value: vdl.ValueOf(uint16(255)), |
| TypeString: "uint16", |
| Hex: "8108ffff", |
| HexVersion: "81", |
| HexValue: "08ffff", |
| }, |
| { |
| Name: "uint16(256)", |
| Value: vdl.ValueOf(uint16(256)), |
| TypeString: "uint16", |
| Hex: "8108fe0100", |
| HexVersion: "81", |
| HexValue: "08fe0100", |
| }, |
| { |
| Name: "uint16(32766)", |
| Value: vdl.ValueOf(uint16(32766)), |
| TypeString: "uint16", |
| Hex: "8108fe7ffe", |
| HexVersion: "81", |
| HexValue: "08fe7ffe", |
| }, |
| { |
| Name: "uint16(32767)", |
| Value: vdl.ValueOf(uint16(32767)), |
| TypeString: "uint16", |
| Hex: "8108fe7fff", |
| HexVersion: "81", |
| HexValue: "08fe7fff", |
| }, |
| { |
| Name: "uint16(65534)", |
| Value: vdl.ValueOf(uint16(65534)), |
| TypeString: "uint16", |
| Hex: "8108fefffe", |
| HexVersion: "81", |
| HexValue: "08fefffe", |
| }, |
| { |
| Name: "uint16(65535)", |
| Value: vdl.ValueOf(uint16(65535)), |
| TypeString: "uint16", |
| Hex: "8108feffff", |
| HexVersion: "81", |
| HexValue: "08feffff", |
| }, |
| { |
| Name: "uint32(0)", |
| Value: vdl.ValueOf(uint32(0)), |
| TypeString: "uint32", |
| Hex: "810a00", |
| HexVersion: "81", |
| HexValue: "0a00", |
| }, |
| { |
| Name: "uint32(8388606)", |
| Value: vdl.ValueOf(uint32(8388606)), |
| TypeString: "uint32", |
| Hex: "810afd7ffffe", |
| HexVersion: "81", |
| HexValue: "0afd7ffffe", |
| }, |
| { |
| Name: "uint32(8388607)", |
| Value: vdl.ValueOf(uint32(8388607)), |
| TypeString: "uint32", |
| Hex: "810afd7fffff", |
| HexVersion: "81", |
| HexValue: "0afd7fffff", |
| }, |
| { |
| Name: "uint32(16777214)", |
| Value: vdl.ValueOf(uint32(16777214)), |
| TypeString: "uint32", |
| Hex: "810afdfffffe", |
| HexVersion: "81", |
| HexValue: "0afdfffffe", |
| }, |
| { |
| Name: "uint32(16777215)", |
| Value: vdl.ValueOf(uint32(16777215)), |
| TypeString: "uint32", |
| Hex: "810afdffffff", |
| HexVersion: "81", |
| HexValue: "0afdffffff", |
| }, |
| { |
| Name: "uint32(2147483646)", |
| Value: vdl.ValueOf(uint32(2147483646)), |
| TypeString: "uint32", |
| Hex: "810afc7ffffffe", |
| HexVersion: "81", |
| HexValue: "0afc7ffffffe", |
| }, |
| { |
| Name: "uint32(2147483647)", |
| Value: vdl.ValueOf(uint32(2147483647)), |
| TypeString: "uint32", |
| Hex: "810afc7fffffff", |
| HexVersion: "81", |
| HexValue: "0afc7fffffff", |
| }, |
| { |
| Name: "uint32(4294967294)", |
| Value: vdl.ValueOf(uint32(4294967294)), |
| TypeString: "uint32", |
| Hex: "810afcfffffffe", |
| HexVersion: "81", |
| HexValue: "0afcfffffffe", |
| }, |
| { |
| Name: "uint32(4294967295)", |
| Value: vdl.ValueOf(uint32(4294967295)), |
| TypeString: "uint32", |
| Hex: "810afcffffffff", |
| HexVersion: "81", |
| HexValue: "0afcffffffff", |
| }, |
| { |
| Name: "uint64(0)", |
| Value: vdl.ValueOf(uint64(0)), |
| TypeString: "uint64", |
| Hex: "810c00", |
| HexVersion: "81", |
| HexValue: "0c00", |
| }, |
| { |
| Name: "uint64(549755813886)", |
| Value: vdl.ValueOf(uint64(549755813886)), |
| TypeString: "uint64", |
| Hex: "810cfb7ffffffffe", |
| HexVersion: "81", |
| HexValue: "0cfb7ffffffffe", |
| }, |
| { |
| Name: "uint64(549755813887)", |
| Value: vdl.ValueOf(uint64(549755813887)), |
| TypeString: "uint64", |
| Hex: "810cfb7fffffffff", |
| HexVersion: "81", |
| HexValue: "0cfb7fffffffff", |
| }, |
| { |
| Name: "uint64(1099511627774)", |
| Value: vdl.ValueOf(uint64(1099511627774)), |
| TypeString: "uint64", |
| Hex: "810cfbfffffffffe", |
| HexVersion: "81", |
| HexValue: "0cfbfffffffffe", |
| }, |
| { |
| Name: "uint64(1099511627775)", |
| Value: vdl.ValueOf(uint64(1099511627775)), |
| TypeString: "uint64", |
| Hex: "810cfbffffffffff", |
| HexVersion: "81", |
| HexValue: "0cfbffffffffff", |
| }, |
| { |
| Name: "uint64(140737488355326)", |
| Value: vdl.ValueOf(uint64(140737488355326)), |
| TypeString: "uint64", |
| Hex: "810cfa7ffffffffffe", |
| HexVersion: "81", |
| HexValue: "0cfa7ffffffffffe", |
| }, |
| { |
| Name: "uint64(140737488355327)", |
| Value: vdl.ValueOf(uint64(140737488355327)), |
| TypeString: "uint64", |
| Hex: "810cfa7fffffffffff", |
| HexVersion: "81", |
| HexValue: "0cfa7fffffffffff", |
| }, |
| { |
| Name: "uint64(281474976710654)", |
| Value: vdl.ValueOf(uint64(281474976710654)), |
| TypeString: "uint64", |
| Hex: "810cfafffffffffffe", |
| HexVersion: "81", |
| HexValue: "0cfafffffffffffe", |
| }, |
| { |
| Name: "uint64(281474976710655)", |
| Value: vdl.ValueOf(uint64(281474976710655)), |
| TypeString: "uint64", |
| Hex: "810cfaffffffffffff", |
| HexVersion: "81", |
| HexValue: "0cfaffffffffffff", |
| }, |
| { |
| Name: "uint64(36028797018963966)", |
| Value: vdl.ValueOf(uint64(36028797018963966)), |
| TypeString: "uint64", |
| Hex: "810cf97ffffffffffffe", |
| HexVersion: "81", |
| HexValue: "0cf97ffffffffffffe", |
| }, |
| { |
| Name: "uint64(36028797018963967)", |
| Value: vdl.ValueOf(uint64(36028797018963967)), |
| TypeString: "uint64", |
| Hex: "810cf97fffffffffffff", |
| HexVersion: "81", |
| HexValue: "0cf97fffffffffffff", |
| }, |
| { |
| Name: "uint64(72057594037927934)", |
| Value: vdl.ValueOf(uint64(72057594037927934)), |
| TypeString: "uint64", |
| Hex: "810cf9fffffffffffffe", |
| HexVersion: "81", |
| HexValue: "0cf9fffffffffffffe", |
| }, |
| { |
| Name: "uint64(72057594037927935)", |
| Value: vdl.ValueOf(uint64(72057594037927935)), |
| TypeString: "uint64", |
| Hex: "810cf9ffffffffffffff", |
| HexVersion: "81", |
| HexValue: "0cf9ffffffffffffff", |
| }, |
| { |
| Name: "uint64(9223372036854775806)", |
| Value: vdl.ValueOf(uint64(9223372036854775806)), |
| TypeString: "uint64", |
| Hex: "810cf87ffffffffffffffe", |
| HexVersion: "81", |
| HexValue: "0cf87ffffffffffffffe", |
| }, |
| { |
| Name: "uint64(9223372036854775807)", |
| Value: vdl.ValueOf(uint64(9223372036854775807)), |
| TypeString: "uint64", |
| Hex: "810cf87fffffffffffffff", |
| HexVersion: "81", |
| HexValue: "0cf87fffffffffffffff", |
| }, |
| { |
| Name: "uint64(18446744073709551614)", |
| Value: vdl.ValueOf(uint64(18446744073709551614)), |
| TypeString: "uint64", |
| Hex: "810cf8fffffffffffffffe", |
| HexVersion: "81", |
| HexValue: "0cf8fffffffffffffffe", |
| }, |
| { |
| Name: "uint64(18446744073709551615)", |
| Value: vdl.ValueOf(uint64(18446744073709551615)), |
| TypeString: "uint64", |
| Hex: "810cf8ffffffffffffffff", |
| HexVersion: "81", |
| HexValue: "0cf8ffffffffffffffff", |
| }, |
| { |
| Name: "int16(0)", |
| Value: vdl.ValueOf(int16(0)), |
| TypeString: "int16", |
| Hex: "810e00", |
| HexVersion: "81", |
| HexValue: "0e00", |
| }, |
| { |
| Name: "int16(1)", |
| Value: vdl.ValueOf(int16(1)), |
| TypeString: "int16", |
| Hex: "810e02", |
| HexVersion: "81", |
| HexValue: "0e02", |
| }, |
| { |
| Name: "int16(2)", |
| Value: vdl.ValueOf(int16(2)), |
| TypeString: "int16", |
| Hex: "810e04", |
| HexVersion: "81", |
| HexValue: "0e04", |
| }, |
| { |
| Name: "int16(63)", |
| Value: vdl.ValueOf(int16(63)), |
| TypeString: "int16", |
| Hex: "810e7e", |
| HexVersion: "81", |
| HexValue: "0e7e", |
| }, |
| { |
| Name: "int16(64)", |
| Value: vdl.ValueOf(int16(64)), |
| TypeString: "int16", |
| Hex: "810eff80", |
| HexVersion: "81", |
| HexValue: "0eff80", |
| }, |
| { |
| Name: "int16(127)", |
| Value: vdl.ValueOf(int16(127)), |
| TypeString: "int16", |
| Hex: "810efffe", |
| HexVersion: "81", |
| HexValue: "0efffe", |
| }, |
| { |
| Name: "int16(128)", |
| Value: vdl.ValueOf(int16(128)), |
| TypeString: "int16", |
| Hex: "810efe0100", |
| HexVersion: "81", |
| HexValue: "0efe0100", |
| }, |
| { |
| Name: "int16(255)", |
| Value: vdl.ValueOf(int16(255)), |
| TypeString: "int16", |
| Hex: "810efe01fe", |
| HexVersion: "81", |
| HexValue: "0efe01fe", |
| }, |
| { |
| Name: "int16(256)", |
| Value: vdl.ValueOf(int16(256)), |
| TypeString: "int16", |
| Hex: "810efe0200", |
| HexVersion: "81", |
| HexValue: "0efe0200", |
| }, |
| { |
| Name: "int16(32766)", |
| Value: vdl.ValueOf(int16(32766)), |
| TypeString: "int16", |
| Hex: "810efefffc", |
| HexVersion: "81", |
| HexValue: "0efefffc", |
| }, |
| { |
| Name: "int16(32767)", |
| Value: vdl.ValueOf(int16(32767)), |
| TypeString: "int16", |
| Hex: "810efefffe", |
| HexVersion: "81", |
| HexValue: "0efefffe", |
| }, |
| { |
| Name: "int32(0)", |
| Value: vdl.ValueOf(int32(0)), |
| TypeString: "int32", |
| Hex: "811000", |
| HexVersion: "81", |
| HexValue: "1000", |
| }, |
| { |
| Name: "int32(8388606)", |
| Value: vdl.ValueOf(int32(8388606)), |
| TypeString: "int32", |
| Hex: "8110fdfffffc", |
| HexVersion: "81", |
| HexValue: "10fdfffffc", |
| }, |
| { |
| Name: "int32(8388607)", |
| Value: vdl.ValueOf(int32(8388607)), |
| TypeString: "int32", |
| Hex: "8110fdfffffe", |
| HexVersion: "81", |
| HexValue: "10fdfffffe", |
| }, |
| { |
| Name: "int32(16777214)", |
| Value: vdl.ValueOf(int32(16777214)), |
| TypeString: "int32", |
| Hex: "8110fc01fffffc", |
| HexVersion: "81", |
| HexValue: "10fc01fffffc", |
| }, |
| { |
| Name: "int32(16777215)", |
| Value: vdl.ValueOf(int32(16777215)), |
| TypeString: "int32", |
| Hex: "8110fc01fffffe", |
| HexVersion: "81", |
| HexValue: "10fc01fffffe", |
| }, |
| { |
| Name: "int32(2147483646)", |
| Value: vdl.ValueOf(int32(2147483646)), |
| TypeString: "int32", |
| Hex: "8110fcfffffffc", |
| HexVersion: "81", |
| HexValue: "10fcfffffffc", |
| }, |
| { |
| Name: "int32(2147483647)", |
| Value: vdl.ValueOf(int32(2147483647)), |
| TypeString: "int32", |
| Hex: "8110fcfffffffe", |
| HexVersion: "81", |
| HexValue: "10fcfffffffe", |
| }, |
| { |
| Name: "int64(0)", |
| Value: vdl.ValueOf(int64(0)), |
| TypeString: "int64", |
| Hex: "811200", |
| HexVersion: "81", |
| HexValue: "1200", |
| }, |
| { |
| Name: "int64(1)", |
| Value: vdl.ValueOf(int64(1)), |
| TypeString: "int64", |
| Hex: "811202", |
| HexVersion: "81", |
| HexValue: "1202", |
| }, |
| { |
| Name: "int64(2)", |
| Value: vdl.ValueOf(int64(2)), |
| TypeString: "int64", |
| Hex: "811204", |
| HexVersion: "81", |
| HexValue: "1204", |
| }, |
| { |
| Name: "int64(549755813886)", |
| Value: vdl.ValueOf(int64(549755813886)), |
| TypeString: "int64", |
| Hex: "8112fbfffffffffc", |
| HexVersion: "81", |
| HexValue: "12fbfffffffffc", |
| }, |
| { |
| Name: "int64(549755813887)", |
| Value: vdl.ValueOf(int64(549755813887)), |
| TypeString: "int64", |
| Hex: "8112fbfffffffffe", |
| HexVersion: "81", |
| HexValue: "12fbfffffffffe", |
| }, |
| { |
| Name: "int64(1099511627774)", |
| Value: vdl.ValueOf(int64(1099511627774)), |
| TypeString: "int64", |
| Hex: "8112fa01fffffffffc", |
| HexVersion: "81", |
| HexValue: "12fa01fffffffffc", |
| }, |
| { |
| Name: "int64(1099511627775)", |
| Value: vdl.ValueOf(int64(1099511627775)), |
| TypeString: "int64", |
| Hex: "8112fa01fffffffffe", |
| HexVersion: "81", |
| HexValue: "12fa01fffffffffe", |
| }, |
| { |
| Name: "int64(140737488355326)", |
| Value: vdl.ValueOf(int64(140737488355326)), |
| TypeString: "int64", |
| Hex: "8112fafffffffffffc", |
| HexVersion: "81", |
| HexValue: "12fafffffffffffc", |
| }, |
| { |
| Name: "int64(140737488355327)", |
| Value: vdl.ValueOf(int64(140737488355327)), |
| TypeString: "int64", |
| Hex: "8112fafffffffffffe", |
| HexVersion: "81", |
| HexValue: "12fafffffffffffe", |
| }, |
| { |
| Name: "int64(281474976710654)", |
| Value: vdl.ValueOf(int64(281474976710654)), |
| TypeString: "int64", |
| Hex: "8112f901fffffffffffc", |
| HexVersion: "81", |
| HexValue: "12f901fffffffffffc", |
| }, |
| { |
| Name: "int64(281474976710655)", |
| Value: vdl.ValueOf(int64(281474976710655)), |
| TypeString: "int64", |
| Hex: "8112f901fffffffffffe", |
| HexVersion: "81", |
| HexValue: "12f901fffffffffffe", |
| }, |
| { |
| Name: "int64(36028797018963966)", |
| Value: vdl.ValueOf(int64(36028797018963966)), |
| TypeString: "int64", |
| Hex: "8112f9fffffffffffffc", |
| HexVersion: "81", |
| HexValue: "12f9fffffffffffffc", |
| }, |
| { |
| Name: "int64(36028797018963967)", |
| Value: vdl.ValueOf(int64(36028797018963967)), |
| TypeString: "int64", |
| Hex: "8112f9fffffffffffffe", |
| HexVersion: "81", |
| HexValue: "12f9fffffffffffffe", |
| }, |
| { |
| Name: "int64(72057594037927934)", |
| Value: vdl.ValueOf(int64(72057594037927934)), |
| TypeString: "int64", |
| Hex: "8112f801fffffffffffffc", |
| HexVersion: "81", |
| HexValue: "12f801fffffffffffffc", |
| }, |
| { |
| Name: "int64(72057594037927935)", |
| Value: vdl.ValueOf(int64(72057594037927935)), |
| TypeString: "int64", |
| Hex: "8112f801fffffffffffffe", |
| HexVersion: "81", |
| HexValue: "12f801fffffffffffffe", |
| }, |
| { |
| Name: "int64(9223372036854775806)", |
| Value: vdl.ValueOf(int64(9223372036854775806)), |
| TypeString: "int64", |
| Hex: "8112f8fffffffffffffffc", |
| HexVersion: "81", |
| HexValue: "12f8fffffffffffffffc", |
| }, |
| { |
| Name: "int64(9223372036854775807)", |
| Value: vdl.ValueOf(int64(9223372036854775807)), |
| TypeString: "int64", |
| Hex: "8112f8fffffffffffffffe", |
| HexVersion: "81", |
| HexValue: "12f8fffffffffffffffe", |
| }, |
| { |
| Name: "int16(-1)", |
| Value: vdl.ValueOf(int16(-1)), |
| TypeString: "int16", |
| Hex: "810e01", |
| HexVersion: "81", |
| HexValue: "0e01", |
| }, |
| { |
| Name: "int16(-2)", |
| Value: vdl.ValueOf(int16(-2)), |
| TypeString: "int16", |
| Hex: "810e03", |
| HexVersion: "81", |
| HexValue: "0e03", |
| }, |
| { |
| Name: "int16(-64)", |
| Value: vdl.ValueOf(int16(-64)), |
| TypeString: "int16", |
| Hex: "810e7f", |
| HexVersion: "81", |
| HexValue: "0e7f", |
| }, |
| { |
| Name: "int16(-65)", |
| Value: vdl.ValueOf(int16(-65)), |
| TypeString: "int16", |
| Hex: "810eff81", |
| HexVersion: "81", |
| HexValue: "0eff81", |
| }, |
| { |
| Name: "int16(-128)", |
| Value: vdl.ValueOf(int16(-128)), |
| TypeString: "int16", |
| Hex: "810effff", |
| HexVersion: "81", |
| HexValue: "0effff", |
| }, |
| { |
| Name: "int16(-129)", |
| Value: vdl.ValueOf(int16(-129)), |
| TypeString: "int16", |
| Hex: "810efe0101", |
| HexVersion: "81", |
| HexValue: "0efe0101", |
| }, |
| { |
| Name: "int16(-256)", |
| Value: vdl.ValueOf(int16(-256)), |
| TypeString: "int16", |
| Hex: "810efe01ff", |
| HexVersion: "81", |
| HexValue: "0efe01ff", |
| }, |
| { |
| Name: "int16(-257)", |
| Value: vdl.ValueOf(int16(-257)), |
| TypeString: "int16", |
| Hex: "810efe0201", |
| HexVersion: "81", |
| HexValue: "0efe0201", |
| }, |
| { |
| Name: "int16(-32767)", |
| Value: vdl.ValueOf(int16(-32767)), |
| TypeString: "int16", |
| Hex: "810efefffd", |
| HexVersion: "81", |
| HexValue: "0efefffd", |
| }, |
| { |
| Name: "int16(-32768)", |
| Value: vdl.ValueOf(int16(-32768)), |
| TypeString: "int16", |
| Hex: "810efeffff", |
| HexVersion: "81", |
| HexValue: "0efeffff", |
| }, |
| { |
| Name: "int32(-8388607)", |
| Value: vdl.ValueOf(int32(-8388607)), |
| TypeString: "int32", |
| Hex: "8110fdfffffd", |
| HexVersion: "81", |
| HexValue: "10fdfffffd", |
| }, |
| { |
| Name: "int32(-8388608)", |
| Value: vdl.ValueOf(int32(-8388608)), |
| TypeString: "int32", |
| Hex: "8110fdffffff", |
| HexVersion: "81", |
| HexValue: "10fdffffff", |
| }, |
| { |
| Name: "int32(-16777215)", |
| Value: vdl.ValueOf(int32(-16777215)), |
| TypeString: "int32", |
| Hex: "8110fc01fffffd", |
| HexVersion: "81", |
| HexValue: "10fc01fffffd", |
| }, |
| { |
| Name: "int32(-16777216)", |
| Value: vdl.ValueOf(int32(-16777216)), |
| TypeString: "int32", |
| Hex: "8110fc01ffffff", |
| HexVersion: "81", |
| HexValue: "10fc01ffffff", |
| }, |
| { |
| Name: "int32(-2147483647)", |
| Value: vdl.ValueOf(int32(-2147483647)), |
| TypeString: "int32", |
| Hex: "8110fcfffffffd", |
| HexVersion: "81", |
| HexValue: "10fcfffffffd", |
| }, |
| { |
| Name: "int32(-2147483648)", |
| Value: vdl.ValueOf(int32(-2147483648)), |
| TypeString: "int32", |
| Hex: "8110fcffffffff", |
| HexVersion: "81", |
| HexValue: "10fcffffffff", |
| }, |
| { |
| Name: "int64(-1)", |
| Value: vdl.ValueOf(int64(-1)), |
| TypeString: "int64", |
| Hex: "811201", |
| HexVersion: "81", |
| HexValue: "1201", |
| }, |
| { |
| Name: "int64(-2)", |
| Value: vdl.ValueOf(int64(-2)), |
| TypeString: "int64", |
| Hex: "811203", |
| HexVersion: "81", |
| HexValue: "1203", |
| }, |
| { |
| Name: "int64(-549755813887)", |
| Value: vdl.ValueOf(int64(-549755813887)), |
| TypeString: "int64", |
| Hex: "8112fbfffffffffd", |
| HexVersion: "81", |
| HexValue: "12fbfffffffffd", |
| }, |
| { |
| Name: "int64(-549755813888)", |
| Value: vdl.ValueOf(int64(-549755813888)), |
| TypeString: "int64", |
| Hex: "8112fbffffffffff", |
| HexVersion: "81", |
| HexValue: "12fbffffffffff", |
| }, |
| { |
| Name: "int64(-1099511627775)", |
| Value: vdl.ValueOf(int64(-1099511627775)), |
| TypeString: "int64", |
| Hex: "8112fa01fffffffffd", |
| HexVersion: "81", |
| HexValue: "12fa01fffffffffd", |
| }, |
| { |
| Name: "int64(-1099511627776)", |
| Value: vdl.ValueOf(int64(-1099511627776)), |
| TypeString: "int64", |
| Hex: "8112fa01ffffffffff", |
| HexVersion: "81", |
| HexValue: "12fa01ffffffffff", |
| }, |
| { |
| Name: "int64(-140737488355327)", |
| Value: vdl.ValueOf(int64(-140737488355327)), |
| TypeString: "int64", |
| Hex: "8112fafffffffffffd", |
| HexVersion: "81", |
| HexValue: "12fafffffffffffd", |
| }, |
| { |
| Name: "int64(-140737488355328)", |
| Value: vdl.ValueOf(int64(-140737488355328)), |
| TypeString: "int64", |
| Hex: "8112faffffffffffff", |
| HexVersion: "81", |
| HexValue: "12faffffffffffff", |
| }, |
| { |
| Name: "int64(-281474976710655)", |
| Value: vdl.ValueOf(int64(-281474976710655)), |
| TypeString: "int64", |
| Hex: "8112f901fffffffffffd", |
| HexVersion: "81", |
| HexValue: "12f901fffffffffffd", |
| }, |
| { |
| Name: "int64(-281474976710656)", |
| Value: vdl.ValueOf(int64(-281474976710656)), |
| TypeString: "int64", |
| Hex: "8112f901ffffffffffff", |
| HexVersion: "81", |
| HexValue: "12f901ffffffffffff", |
| }, |
| { |
| Name: "int64(-36028797018963967)", |
| Value: vdl.ValueOf(int64(-36028797018963967)), |
| TypeString: "int64", |
| Hex: "8112f9fffffffffffffd", |
| HexVersion: "81", |
| HexValue: "12f9fffffffffffffd", |
| }, |
| { |
| Name: "int64(-36028797018963968)", |
| Value: vdl.ValueOf(int64(-36028797018963968)), |
| TypeString: "int64", |
| Hex: "8112f9ffffffffffffff", |
| HexVersion: "81", |
| HexValue: "12f9ffffffffffffff", |
| }, |
| { |
| Name: "int64(-72057594037927935)", |
| Value: vdl.ValueOf(int64(-72057594037927935)), |
| TypeString: "int64", |
| Hex: "8112f801fffffffffffffd", |
| HexVersion: "81", |
| HexValue: "12f801fffffffffffffd", |
| }, |
| { |
| Name: "int64(-72057594037927936)", |
| Value: vdl.ValueOf(int64(-72057594037927936)), |
| TypeString: "int64", |
| Hex: "8112f801ffffffffffffff", |
| HexVersion: "81", |
| HexValue: "12f801ffffffffffffff", |
| }, |
| { |
| Name: "int64(-9223372036854775807)", |
| Value: vdl.ValueOf(int64(-9223372036854775807)), |
| TypeString: "int64", |
| Hex: "8112f8fffffffffffffffd", |
| HexVersion: "81", |
| HexValue: "12f8fffffffffffffffd", |
| }, |
| { |
| Name: "int64(-9223372036854775808)", |
| Value: vdl.ValueOf(int64(-9223372036854775808)), |
| TypeString: "int64", |
| Hex: "8112f8ffffffffffffffff", |
| HexVersion: "81", |
| HexValue: "12f8ffffffffffffffff", |
| }, |
| { |
| Name: "float32(0)", |
| Value: vdl.ValueOf(float32(0)), |
| TypeString: "float32", |
| Hex: "811400", |
| HexVersion: "81", |
| HexValue: "1400", |
| }, |
| { |
| Name: "float32(32.5)", |
| Value: vdl.ValueOf(float32(32.5)), |
| TypeString: "float32", |
| Hex: "8114fd404040", |
| HexVersion: "81", |
| HexValue: "14fd404040", |
| }, |
| { |
| Name: "float32(-32.5)", |
| Value: vdl.ValueOf(float32(-32.5)), |
| TypeString: "float32", |
| Hex: "8114fd4040c0", |
| HexVersion: "81", |
| HexValue: "14fd4040c0", |
| }, |
| { |
| Name: "float64(0)", |
| Value: vdl.ValueOf(float64(0)), |
| TypeString: "float64", |
| Hex: "811600", |
| HexVersion: "81", |
| HexValue: "1600", |
| }, |
| { |
| Name: "float64(64.5)", |
| Value: vdl.ValueOf(float64(64.5)), |
| TypeString: "float64", |
| Hex: "8116fd205040", |
| HexVersion: "81", |
| HexValue: "16fd205040", |
| }, |
| { |
| Name: "float64(-64.5)", |
| Value: vdl.ValueOf(float64(-64.5)), |
| TypeString: "float64", |
| Hex: "8116fd2050c0", |
| HexVersion: "81", |
| HexValue: "16fd2050c0", |
| }, |
| { |
| Name: "types.NBool(true)", |
| Value: vdl.ValueOf(types.NBool(true)), |
| TypeString: "v.io/v23/vom/testdata/types.NBool bool", |
| Hex: "815127000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e426f6f6c0101e15201", |
| HexVersion: "81", |
| HexType: "5127000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e426f6f6c0101e1", |
| HexValue: "5201", |
| }, |
| { |
| Name: "types.NBool(false)", |
| Value: vdl.ValueOf(types.NBool(false)), |
| TypeString: "v.io/v23/vom/testdata/types.NBool bool", |
| Hex: "815127000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e426f6f6c0101e15200", |
| HexVersion: "81", |
| HexType: "5127000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e426f6f6c0101e1", |
| HexValue: "5200", |
| }, |
| { |
| Name: "types.NString(\"\")", |
| Value: vdl.ValueOf(types.NString("")), |
| TypeString: "v.io/v23/vom/testdata/types.NString string", |
| Hex: "815129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e537472696e670103e15200", |
| HexVersion: "81", |
| HexType: "5129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e537472696e670103e1", |
| HexValue: "5200", |
| }, |
| { |
| Name: "types.NString(\"abc\")", |
| Value: vdl.ValueOf(types.NString("abc")), |
| TypeString: "v.io/v23/vom/testdata/types.NString string", |
| Hex: "815129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e537472696e670103e15203616263", |
| HexVersion: "81", |
| HexType: "5129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e537472696e670103e1", |
| HexValue: "5203616263", |
| }, |
| { |
| Name: "types.NByteSlice(\"\")", |
| Value: vdl.ValueOf(types.NByteSlice(nil)), |
| TypeString: "v.io/v23/vom/testdata/types.NByteSlice []byte", |
| Hex: "81512c030026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465536c6963650102e15200", |
| HexVersion: "81", |
| HexType: "512c030026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465536c6963650102e1", |
| HexValue: "5200", |
| }, |
| { |
| Name: "types.NByteSlice(\"\\xff\\x00\\x01\")", |
| Value: vdl.ValueOf(types.NByteSlice("\xff\x00\x01")), |
| TypeString: "v.io/v23/vom/testdata/types.NByteSlice []byte", |
| Hex: "81512c030026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465536c6963650102e15203ff0001", |
| HexVersion: "81", |
| HexType: "512c030026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465536c6963650102e1", |
| HexValue: "5203ff0001", |
| }, |
| { |
| Name: "types.NByteSlice(\"abc\")", |
| Value: vdl.ValueOf(types.NByteSlice("abc")), |
| TypeString: "v.io/v23/vom/testdata/types.NByteSlice []byte", |
| Hex: "81512c030026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465536c6963650102e15203616263", |
| HexVersion: "81", |
| HexType: "512c030026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465536c6963650102e1", |
| HexValue: "5203616263", |
| }, |
| { |
| Name: "types.NByteArray(\"\\x00\\x00\\x00\\x00\")", |
| Value: vdl.ValueOf(types.NByteArray{}), |
| TypeString: "v.io/v23/vom/testdata/types.NByteArray [4]byte", |
| Hex: "81512e020026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465417272617901020204e1520000000000", |
| HexVersion: "81", |
| HexType: "512e020026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465417272617901020204e1", |
| HexValue: "520000000000", |
| }, |
| { |
| Name: "types.NByteArray(\"\\xff\\x00\\x01\\x00\")", |
| Value: vdl.ValueOf(types.NByteArray{ |
| 255, |
| 0, |
| 1, |
| 0, |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.NByteArray [4]byte", |
| Hex: "81512e020026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465417272617901020204e15200ff000100", |
| HexVersion: "81", |
| HexType: "512e020026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465417272617901020204e1", |
| HexValue: "5200ff000100", |
| }, |
| { |
| Name: "types.NByteArray(\"abcd\")", |
| Value: vdl.ValueOf(types.NByteArray{ |
| 97, |
| 98, |
| 99, |
| 100, |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.NByteArray [4]byte", |
| Hex: "81512e020026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465417272617901020204e1520061626364", |
| HexVersion: "81", |
| HexType: "512e020026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465417272617901020204e1", |
| HexValue: "520061626364", |
| }, |
| { |
| Name: "types.NByte(0)", |
| Value: vdl.ValueOf(types.NByte(0)), |
| TypeString: "v.io/v23/vom/testdata/types.NByte byte", |
| Hex: "815127000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e427974650102e15200", |
| HexVersion: "81", |
| HexType: "5127000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e427974650102e1", |
| HexValue: "5200", |
| }, |
| { |
| Name: "types.NByte(127)", |
| Value: vdl.ValueOf(types.NByte(127)), |
| TypeString: "v.io/v23/vom/testdata/types.NByte byte", |
| Hex: "815127000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e427974650102e1527f", |
| HexVersion: "81", |
| HexType: "5127000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e427974650102e1", |
| HexValue: "527f", |
| }, |
| { |
| Name: "types.NByte(255)", |
| Value: vdl.ValueOf(types.NByte(255)), |
| TypeString: "v.io/v23/vom/testdata/types.NByte byte", |
| Hex: "815127000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e427974650102e152ffff", |
| HexVersion: "81", |
| HexType: "5127000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e427974650102e1", |
| HexValue: "52ffff", |
| }, |
| { |
| Name: "types.NUint16(0)", |
| Value: vdl.ValueOf(types.NUint16(0)), |
| TypeString: "v.io/v23/vom/testdata/types.NUint16 uint16", |
| Hex: "815129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e55696e7431360104e15200", |
| HexVersion: "81", |
| HexType: "5129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e55696e7431360104e1", |
| HexValue: "5200", |
| }, |
| { |
| Name: "types.NUint16(65535)", |
| Value: vdl.ValueOf(types.NUint16(65535)), |
| TypeString: "v.io/v23/vom/testdata/types.NUint16 uint16", |
| Hex: "815129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e55696e7431360104e152feffff", |
| HexVersion: "81", |
| HexType: "5129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e55696e7431360104e1", |
| HexValue: "52feffff", |
| }, |
| { |
| Name: "types.NUint32(0)", |
| Value: vdl.ValueOf(types.NUint32(0)), |
| TypeString: "v.io/v23/vom/testdata/types.NUint32 uint32", |
| Hex: "815129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e55696e7433320105e15200", |
| HexVersion: "81", |
| HexType: "5129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e55696e7433320105e1", |
| HexValue: "5200", |
| }, |
| { |
| Name: "types.NUint32(4294967295)", |
| Value: vdl.ValueOf(types.NUint32(4294967295)), |
| TypeString: "v.io/v23/vom/testdata/types.NUint32 uint32", |
| Hex: "815129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e55696e7433320105e152fcffffffff", |
| HexVersion: "81", |
| HexType: "5129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e55696e7433320105e1", |
| HexValue: "52fcffffffff", |
| }, |
| { |
| Name: "types.NUint64(0)", |
| Value: vdl.ValueOf(types.NUint64(0)), |
| TypeString: "v.io/v23/vom/testdata/types.NUint64 uint64", |
| Hex: "815129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e55696e7436340106e15200", |
| HexVersion: "81", |
| HexType: "5129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e55696e7436340106e1", |
| HexValue: "5200", |
| }, |
| { |
| Name: "types.NUint64(18446744073709551615)", |
| Value: vdl.ValueOf(types.NUint64(18446744073709551615)), |
| TypeString: "v.io/v23/vom/testdata/types.NUint64 uint64", |
| Hex: "815129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e55696e7436340106e152f8ffffffffffffffff", |
| HexVersion: "81", |
| HexType: "5129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e55696e7436340106e1", |
| HexValue: "52f8ffffffffffffffff", |
| }, |
| { |
| Name: "types.NInt16(0)", |
| Value: vdl.ValueOf(types.NInt16(0)), |
| TypeString: "v.io/v23/vom/testdata/types.NInt16 int16", |
| Hex: "815128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7431360107e15200", |
| HexVersion: "81", |
| HexType: "5128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7431360107e1", |
| HexValue: "5200", |
| }, |
| { |
| Name: "types.NInt16(32767)", |
| Value: vdl.ValueOf(types.NInt16(32767)), |
| TypeString: "v.io/v23/vom/testdata/types.NInt16 int16", |
| Hex: "815128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7431360107e152fefffe", |
| HexVersion: "81", |
| HexType: "5128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7431360107e1", |
| HexValue: "52fefffe", |
| }, |
| { |
| Name: "types.NInt16(-32768)", |
| Value: vdl.ValueOf(types.NInt16(-32768)), |
| TypeString: "v.io/v23/vom/testdata/types.NInt16 int16", |
| Hex: "815128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7431360107e152feffff", |
| HexVersion: "81", |
| HexType: "5128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7431360107e1", |
| HexValue: "52feffff", |
| }, |
| { |
| Name: "types.NInt32(0)", |
| Value: vdl.ValueOf(types.NInt32(0)), |
| TypeString: "v.io/v23/vom/testdata/types.NInt32 int32", |
| Hex: "815128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7433320108e15200", |
| HexVersion: "81", |
| HexType: "5128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7433320108e1", |
| HexValue: "5200", |
| }, |
| { |
| Name: "types.NInt32(2147483647)", |
| Value: vdl.ValueOf(types.NInt32(2147483647)), |
| TypeString: "v.io/v23/vom/testdata/types.NInt32 int32", |
| Hex: "815128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7433320108e152fcfffffffe", |
| HexVersion: "81", |
| HexType: "5128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7433320108e1", |
| HexValue: "52fcfffffffe", |
| }, |
| { |
| Name: "types.NInt32(-2147483648)", |
| Value: vdl.ValueOf(types.NInt32(-2147483648)), |
| TypeString: "v.io/v23/vom/testdata/types.NInt32 int32", |
| Hex: "815128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7433320108e152fcffffffff", |
| HexVersion: "81", |
| HexType: "5128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7433320108e1", |
| HexValue: "52fcffffffff", |
| }, |
| { |
| Name: "types.NInt64(0)", |
| Value: vdl.ValueOf(types.NInt64(0)), |
| TypeString: "v.io/v23/vom/testdata/types.NInt64 int64", |
| Hex: "815128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7436340109e15200", |
| HexVersion: "81", |
| HexType: "5128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7436340109e1", |
| HexValue: "5200", |
| }, |
| { |
| Name: "types.NInt64(9223372036854775807)", |
| Value: vdl.ValueOf(types.NInt64(9223372036854775807)), |
| TypeString: "v.io/v23/vom/testdata/types.NInt64 int64", |
| Hex: "815128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7436340109e152f8fffffffffffffffe", |
| HexVersion: "81", |
| HexType: "5128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7436340109e1", |
| HexValue: "52f8fffffffffffffffe", |
| }, |
| { |
| Name: "types.NInt64(-9223372036854775808)", |
| Value: vdl.ValueOf(types.NInt64(-9223372036854775808)), |
| TypeString: "v.io/v23/vom/testdata/types.NInt64 int64", |
| Hex: "815128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7436340109e152f8ffffffffffffffff", |
| HexVersion: "81", |
| HexType: "5128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7436340109e1", |
| HexValue: "52f8ffffffffffffffff", |
| }, |
| { |
| Name: "types.NFloat32(0)", |
| Value: vdl.ValueOf(types.NFloat32(0)), |
| TypeString: "v.io/v23/vom/testdata/types.NFloat32 float32", |
| Hex: "81512a000024762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e466c6f61743332010ae15200", |
| HexVersion: "81", |
| HexType: "512a000024762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e466c6f61743332010ae1", |
| HexValue: "5200", |
| }, |
| { |
| Name: "types.NFloat32(32.5)", |
| Value: vdl.ValueOf(types.NFloat32(32.5)), |
| TypeString: "v.io/v23/vom/testdata/types.NFloat32 float32", |
| Hex: "81512a000024762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e466c6f61743332010ae152fd404040", |
| HexVersion: "81", |
| HexType: "512a000024762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e466c6f61743332010ae1", |
| HexValue: "52fd404040", |
| }, |
| { |
| Name: "types.NFloat32(-32.5)", |
| Value: vdl.ValueOf(types.NFloat32(-32.5)), |
| TypeString: "v.io/v23/vom/testdata/types.NFloat32 float32", |
| Hex: "81512a000024762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e466c6f61743332010ae152fd4040c0", |
| HexVersion: "81", |
| HexType: "512a000024762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e466c6f61743332010ae1", |
| HexValue: "52fd4040c0", |
| }, |
| { |
| Name: "types.NFloat64(0)", |
| Value: vdl.ValueOf(types.NFloat64(0)), |
| TypeString: "v.io/v23/vom/testdata/types.NFloat64 float64", |
| Hex: "81512a000024762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e466c6f61743634010be15200", |
| HexVersion: "81", |
| HexType: "512a000024762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e466c6f61743634010be1", |
| HexValue: "5200", |
| }, |
| { |
| Name: "types.NFloat64(64.5)", |
| Value: vdl.ValueOf(types.NFloat64(64.5)), |
| TypeString: "v.io/v23/vom/testdata/types.NFloat64 float64", |
| Hex: "81512a000024762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e466c6f61743634010be152fd205040", |
| HexVersion: "81", |
| HexType: "512a000024762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e466c6f61743634010be1", |
| HexValue: "52fd205040", |
| }, |
| { |
| Name: "types.NFloat64(-64.5)", |
| Value: vdl.ValueOf(types.NFloat64(-64.5)), |
| TypeString: "v.io/v23/vom/testdata/types.NFloat64 float64", |
| Hex: "81512a000024762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e466c6f61743634010be152fd2050c0", |
| HexVersion: "81", |
| HexType: "512a000024762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e466c6f61743634010be1", |
| HexValue: "52fd2050c0", |
| }, |
| { |
| Name: "types.NArray2Uint64{1, 2}", |
| Value: vdl.ValueOf(types.NArray2Uint64{ |
| 1, |
| 2, |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.NArray2Uint64 [2]uint64", |
| Hex: "815131020029762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e41727261793255696e74363401060202e15203000102", |
| HexVersion: "81", |
| HexType: "5131020029762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e41727261793255696e74363401060202e1", |
| HexValue: "5203000102", |
| }, |
| { |
| Name: "[]uint64{1, 2}", |
| Value: vdl.ValueOf([]uint64{ |
| 1, |
| 2, |
| }), |
| TypeString: "[]uint64", |
| Hex: "815104030106e15203020102", |
| HexVersion: "81", |
| HexType: "5104030106e1", |
| HexValue: "5203020102", |
| }, |
| { |
| Name: "types.NListUint64{1, 2}", |
| Value: vdl.ValueOf(types.NListUint64{ |
| 1, |
| 2, |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.NListUint64 []uint64", |
| Hex: "81512d030027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4c69737455696e7436340106e15203020102", |
| HexVersion: "81", |
| HexType: "512d030027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4c69737455696e7436340106e1", |
| HexValue: "5203020102", |
| }, |
| { |
| Name: "set[uint64]{1}", |
| Value: vdl.ValueOf(map[uint64]struct{}{ |
| 1: struct{}{}, |
| }), |
| TypeString: "set[uint64]", |
| Hex: "815104040106e152020101", |
| HexVersion: "81", |
| HexType: "5104040106e1", |
| HexValue: "52020101", |
| }, |
| { |
| Name: "types.NSetUint64{1}", |
| Value: vdl.ValueOf(types.NSetUint64{ |
| 1: struct{}{}, |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.NSetUint64 set[uint64]", |
| Hex: "81512c040026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53657455696e7436340106e152020101", |
| HexVersion: "81", |
| HexType: "512c040026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53657455696e7436340106e1", |
| HexValue: "52020101", |
| }, |
| { |
| Name: "map[uint64]string{1: \"abc\"}", |
| Value: vdl.ValueOf(map[uint64]string{ |
| 1: "abc", |
| }), |
| TypeString: "map[uint64]string", |
| Hex: "8151060501060203e15206010103616263", |
| HexVersion: "81", |
| HexType: "51060501060203e1", |
| HexValue: "5206010103616263", |
| }, |
| { |
| Name: "types.NMapUint64String{1: \"abc\"}", |
| Value: vdl.ValueOf(types.NMapUint64String{ |
| 1: "abc", |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.NMapUint64String map[uint64]string", |
| Hex: "81513405002c762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4d617055696e743634537472696e6701060203e15206010103616263", |
| HexVersion: "81", |
| HexType: "513405002c762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4d617055696e743634537472696e6701060203e1", |
| HexValue: "5206010103616263", |
| }, |
| { |
| Name: "types.NStruct{A: true, B: \"abc\", C: 123}", |
| Value: vdl.ValueOf(types.NStruct{ |
| A: true, |
| B: "abc", |
| C: 123, |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.NStruct struct{A bool;B string;C int64}", |
| Hex: "81513b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1520b0001010361626302fff6e1", |
| HexVersion: "81", |
| HexType: "513b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1", |
| HexValue: "520b0001010361626302fff6e1", |
| }, |
| { |
| Name: "?types.NStruct(nil)", |
| Value: vdl.ValueOf((*types.NStruct)(nil)), |
| TypeString: "?v.io/v23/vom/testdata/types.NStruct struct{A bool;B string;C int64}", |
| Hex: "81533b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1510408012ae15201e0", |
| HexVersion: "81", |
| HexType: "533b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1510408012ae1", |
| HexValue: "5201e0", |
| }, |
| { |
| Name: "types.NEnum.A", |
| Value: vdl.ValueOf(types.NEnumA), |
| TypeString: "v.io/v23/vom/testdata/types.NEnum enum{A;B;C}", |
| Hex: "81512d010021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e456e756d0103014101420143e15200", |
| HexVersion: "81", |
| HexType: "512d010021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e456e756d0103014101420143e1", |
| HexValue: "5200", |
| }, |
| { |
| Name: "types.NEnum.B", |
| Value: vdl.ValueOf(types.NEnumB), |
| TypeString: "v.io/v23/vom/testdata/types.NEnum enum{A;B;C}", |
| Hex: "81512d010021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e456e756d0103014101420143e15201", |
| HexVersion: "81", |
| HexType: "512d010021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e456e756d0103014101420143e1", |
| HexValue: "5201", |
| }, |
| { |
| Name: "types.NEnum.C", |
| Value: vdl.ValueOf(types.NEnumC), |
| TypeString: "v.io/v23/vom/testdata/types.NEnum enum{A;B;C}", |
| Hex: "81512d010021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e456e756d0103014101420143e15202", |
| HexVersion: "81", |
| HexType: "512d010021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e456e756d0103014101420143e1", |
| HexValue: "5202", |
| }, |
| { |
| Name: "types.NUnion{A: true}", |
| Value: vdl.ValueOf(types.NUnion(types.NUnionA{true})), |
| TypeString: "v.io/v23/vom/testdata/types.NUnion union{A bool;B string;C int64}", |
| Hex: "81513a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e152020001", |
| HexVersion: "81", |
| HexType: "513a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e1", |
| HexValue: "52020001", |
| }, |
| { |
| Name: "types.NUnion{A: false}", |
| Value: vdl.ValueOf(types.NUnion(types.NUnionA{})), |
| TypeString: "v.io/v23/vom/testdata/types.NUnion union{A bool;B string;C int64}", |
| Hex: "81513a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e152020000", |
| HexVersion: "81", |
| HexType: "513a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e1", |
| HexValue: "52020000", |
| }, |
| { |
| Name: "types.NUnion{B: \"\"}", |
| Value: vdl.ValueOf(types.NUnion(types.NUnionB{})), |
| TypeString: "v.io/v23/vom/testdata/types.NUnion union{A bool;B string;C int64}", |
| Hex: "81513a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e152020100", |
| HexVersion: "81", |
| HexType: "513a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e1", |
| HexValue: "52020100", |
| }, |
| { |
| Name: "types.NUnion{B: \"abc\"}", |
| Value: vdl.ValueOf(types.NUnion(types.NUnionB{"abc"})), |
| TypeString: "v.io/v23/vom/testdata/types.NUnion union{A bool;B string;C int64}", |
| Hex: "81513a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e152050103616263", |
| HexVersion: "81", |
| HexType: "513a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e1", |
| HexValue: "52050103616263", |
| }, |
| { |
| Name: "types.NUnion{C: 0}", |
| Value: vdl.ValueOf(types.NUnion(types.NUnionC{})), |
| TypeString: "v.io/v23/vom/testdata/types.NUnion union{A bool;B string;C int64}", |
| Hex: "81513a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e152020200", |
| HexVersion: "81", |
| HexType: "513a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e1", |
| HexValue: "52020200", |
| }, |
| { |
| Name: "types.NUnion{C: 123}", |
| Value: vdl.ValueOf(types.NUnion(types.NUnionC{123})), |
| TypeString: "v.io/v23/vom/testdata/types.NUnion union{A bool;B string;C int64}", |
| Hex: "81513a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e1520302fff6", |
| HexVersion: "81", |
| HexType: "513a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e1", |
| HexValue: "520302fff6", |
| }, |
| { |
| Name: "types.NUnion{C: -123}", |
| Value: vdl.ValueOf(types.NUnion(types.NUnionC{-123})), |
| TypeString: "v.io/v23/vom/testdata/types.NUnion union{A bool;B string;C int64}", |
| Hex: "81513a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e1520302fff5", |
| HexVersion: "81", |
| HexType: "513a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e1", |
| HexValue: "520302fff5", |
| }, |
| { |
| Name: "types.MBool(true)", |
| Value: vdl.ValueOf(types.MBool(true)), |
| TypeString: "v.io/v23/vom/testdata/types.MBool bool", |
| Hex: "815127000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d426f6f6c0101e15201", |
| HexVersion: "81", |
| HexType: "5127000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d426f6f6c0101e1", |
| HexValue: "5201", |
| }, |
| { |
| Name: "types.MBool(false)", |
| Value: vdl.ValueOf(types.MBool(false)), |
| TypeString: "v.io/v23/vom/testdata/types.MBool bool", |
| Hex: "815127000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d426f6f6c0101e15200", |
| HexVersion: "81", |
| HexType: "5127000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d426f6f6c0101e1", |
| HexValue: "5200", |
| }, |
| { |
| Name: "types.MStruct{A: true, B: true, C: true}", |
| Value: vdl.ValueOf(types.MStruct{ |
| A: true, |
| B: true, |
| C: true, |
| E: vdl.AnyType, |
| F: vdl.ZeroValue(vdl.AnyType), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.MStruct struct{A bool;B v.io/v23/vom/testdata/types.NBool bool;C v.io/v23/vom/testdata/types.MBool bool;D ?v.io/v23/vom/testdata/types.NStruct struct{A bool;B string;C int64};E typeobject;F any}", |
| Hex: "815327000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e426f6f6c0101e15527000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d426f6f6c0101e1593b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1570408012de1514d060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d53747275637401060001410101e1000142012ae1000143012be1000144012ce1000145010ee1000146010fe1e152000007000101010201e1", |
| HexVersion: "81", |
| HexType: "5327000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e426f6f6c0101e15527000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d426f6f6c0101e1593b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1570408012de1514d060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d53747275637401060001410101e1000142012ae1000143012be1000144012ce1000145010ee1000146010fe1e1", |
| HexValue: "52000007000101010201e1", |
| }, |
| { |
| Name: "types.MStruct{}", |
| Value: vdl.ValueOf(types.MStruct{ |
| E: vdl.AnyType, |
| F: vdl.ZeroValue(vdl.AnyType), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.MStruct struct{A bool;B v.io/v23/vom/testdata/types.NBool bool;C v.io/v23/vom/testdata/types.MBool bool;D ?v.io/v23/vom/testdata/types.NStruct struct{A bool;B string;C int64};E typeobject;F any}", |
| Hex: "815327000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e426f6f6c0101e15527000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d426f6f6c0101e1593b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1570408012de1514d060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d53747275637401060001410101e1000142012ae1000143012be1000144012ce1000145010ee1000146010fe1e152000001e1", |
| HexVersion: "81", |
| HexType: "5327000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e426f6f6c0101e15527000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d426f6f6c0101e1593b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1570408012de1514d060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d53747275637401060001410101e1000142012ae1000143012be1000144012ce1000145010ee1000146010fe1e1", |
| HexValue: "52000001e1", |
| }, |
| { |
| Name: "types.MStruct{D: {}}", |
| Value: vdl.ValueOf(types.MStruct{ |
| D: &types.NStruct{}, |
| E: vdl.AnyType, |
| F: vdl.ZeroValue(vdl.AnyType), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.MStruct struct{A bool;B v.io/v23/vom/testdata/types.NBool bool;C v.io/v23/vom/testdata/types.MBool bool;D ?v.io/v23/vom/testdata/types.NStruct struct{A bool;B string;C int64};E typeobject;F any}", |
| Hex: "815327000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e426f6f6c0101e15527000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d426f6f6c0101e1593b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1570408012de1514d060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d53747275637401060001410101e1000142012ae1000143012be1000144012ce1000145010ee1000146010fe1e15200000303e1e1", |
| HexVersion: "81", |
| HexType: "5327000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e426f6f6c0101e15527000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d426f6f6c0101e1593b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1570408012de1514d060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d53747275637401060001410101e1000142012ae1000143012be1000144012ce1000145010ee1000146010fe1e1", |
| HexValue: "5200000303e1e1", |
| }, |
| { |
| Name: "types.MStruct{D: {A: true, B: \"abc\", C: 123}}", |
| Value: vdl.ValueOf(types.MStruct{ |
| D: &types.NStruct{ |
| A: true, |
| B: "abc", |
| C: 123, |
| }, |
| E: vdl.AnyType, |
| F: vdl.ZeroValue(vdl.AnyType), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.MStruct struct{A bool;B v.io/v23/vom/testdata/types.NBool bool;C v.io/v23/vom/testdata/types.MBool bool;D ?v.io/v23/vom/testdata/types.NStruct struct{A bool;B string;C int64};E typeobject;F any}", |
| Hex: "815327000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e426f6f6c0101e15527000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d426f6f6c0101e1593b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1570408012de1514d060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d53747275637401060001410101e1000142012ae1000143012be1000144012ce1000145010ee1000146010fe1e15200000d030001010361626302fff6e1e1", |
| HexVersion: "81", |
| HexType: "5327000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e426f6f6c0101e15527000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d426f6f6c0101e1593b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1570408012de1514d060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d53747275637401060001410101e1000142012ae1000143012be1000144012ce1000145010ee1000146010fe1e1", |
| HexValue: "5200000d030001010361626302fff6e1e1", |
| }, |
| { |
| Name: "types.MStruct{F: \"abc\"}", |
| Value: vdl.ValueOf(types.MStruct{ |
| E: vdl.AnyType, |
| F: vdl.ValueOf("abc"), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.MStruct struct{A bool;B v.io/v23/vom/testdata/types.NBool bool;C v.io/v23/vom/testdata/types.MBool bool;D ?v.io/v23/vom/testdata/types.NStruct struct{A bool;B string;C int64};E typeobject;F any}", |
| Hex: "815327000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e426f6f6c0101e15527000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d426f6f6c0101e1593b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1570408012de1514d060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d53747275637401060001410101e1000142012ae1000143012be1000144012ce1000145010ee1000146010fe1e152010301040805000003616263e1", |
| HexVersion: "81", |
| HexType: "5327000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e426f6f6c0101e15527000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d426f6f6c0101e1593b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1570408012de1514d060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d53747275637401060001410101e1000142012ae1000143012be1000144012ce1000145010ee1000146010fe1e1", |
| HexValue: "52010301040805000003616263e1", |
| }, |
| { |
| Name: "types.MStruct{F: types.MBool(true)}", |
| Value: vdl.ValueOf(types.MStruct{ |
| E: vdl.AnyType, |
| F: vdl.ValueOf(types.MBool(true)), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.MStruct struct{A bool;B v.io/v23/vom/testdata/types.NBool bool;C v.io/v23/vom/testdata/types.MBool bool;D ?v.io/v23/vom/testdata/types.NStruct struct{A bool;B string;C int64};E typeobject;F any}", |
| Hex: "815327000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e426f6f6c0101e15527000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d426f6f6c0101e1593b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1570408012de1514d060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d53747275637401060001410101e1000142012ae1000143012be1000144012ce1000145010ee1000146010fe1e152012b01010505000001e1", |
| HexVersion: "81", |
| HexType: "5327000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e426f6f6c0101e15527000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d426f6f6c0101e1593b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1570408012de1514d060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d53747275637401060001410101e1000142012ae1000143012be1000144012ce1000145010ee1000146010fe1e1", |
| HexValue: "52012b01010505000001e1", |
| }, |
| { |
| Name: "types.MStruct{F: ?types.NStruct{B: \"abc\"}}", |
| Value: vdl.ValueOf(types.MStruct{ |
| E: vdl.AnyType, |
| F: vdl.ValueOf(&types.NStruct{ |
| B: "abc", |
| }), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.MStruct struct{A bool;B v.io/v23/vom/testdata/types.NBool bool;C v.io/v23/vom/testdata/types.MBool bool;D ?v.io/v23/vom/testdata/types.NStruct struct{A bool;B string;C int64};E typeobject;F any}", |
| Hex: "815327000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e426f6f6c0101e15527000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d426f6f6c0101e1593b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1570408012de1514d060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d53747275637401060001410101e1000142012ae1000143012be1000144012ce1000145010ee1000146010fe1e152012c01060a0500000103616263e1e1", |
| HexVersion: "81", |
| HexType: "5327000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e426f6f6c0101e15527000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d426f6f6c0101e1593b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1570408012de1514d060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d53747275637401060001410101e1000142012ae1000143012be1000144012ce1000145010ee1000146010fe1e1", |
| HexValue: "52012c01060a0500000103616263e1e1", |
| }, |
| { |
| Name: "types.MList{{4, 2}, {}, {99}}", |
| Value: vdl.ValueOf(types.MList{ |
| { |
| 4, |
| 2, |
| }, |
| nil, |
| { |
| 99, |
| }, |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.MList []v.io/v23/vom/testdata/types.NListUint64 []uint64", |
| Hex: "81532d030027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4c69737455696e7436340106e15127030021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d4c697374012ae1520703020402000163", |
| HexVersion: "81", |
| HexType: "532d030027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4c69737455696e7436340106e15127030021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d4c697374012ae1", |
| HexValue: "520703020402000163", |
| }, |
| { |
| Name: "types.MMap{4.5: {2, 3}}", |
| Value: vdl.ValueOf(types.MMap{ |
| 4.5: { |
| 2, |
| 3, |
| }, |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.MMap map[v.io/v23/vom/testdata/types.NFloat32 float32]v.io/v23/vom/testdata/types.NListUint64 []uint64", |
| Hex: "81532a000024762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e466c6f61743332010ae1552d030027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4c69737455696e7436340106e15128050020762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d4d6170012a022be1520701fe1240020203", |
| HexVersion: "81", |
| HexType: "532a000024762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e466c6f61743332010ae1552d030027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4c69737455696e7436340106e15128050020762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d4d6170012a022be1", |
| HexValue: "520701fe1240020203", |
| }, |
| { |
| Name: "types.RecA{{}, {{}}}", |
| Value: vdl.ValueOf(types.RecA{ |
| nil, |
| { |
| nil, |
| }, |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.RecA []v.io/v23/vom/testdata/types.RecA", |
| Hex: "815126030020762e696f2f7632332f766f6d2f74657374646174612f74797065732e526563410129e1520402000100", |
| HexVersion: "81", |
| HexType: "5126030020762e696f2f7632332f766f6d2f74657374646174612f74797065732e526563410129e1", |
| HexValue: "520402000100", |
| }, |
| { |
| Name: "types.RecX{{}, {{}, {}}}", |
| Value: vdl.ValueOf(types.RecX{ |
| nil, |
| { |
| nil, |
| nil, |
| }, |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.RecX []v.io/v23/vom/testdata/types.RecY []v.io/v23/vom/testdata/types.RecX", |
| Hex: "81e25326030020762e696f2f7632332f766f6d2f74657374646174612f74797065732e526563590129e15126030020762e696f2f7632332f766f6d2f74657374646174612f74797065732e52656358012ae152050200020000", |
| HexVersion: "81", |
| HexType: "e25326030020762e696f2f7632332f766f6d2f74657374646174612f74797065732e526563590129e15126030020762e696f2f7632332f766f6d2f74657374646174612f74797065732e52656358012ae1", |
| HexValue: "52050200020000", |
| }, |
| { |
| Name: "types.Rec1{{{{{}}}}}", |
| Value: vdl.ValueOf(types.Rec1{ |
| { |
| { |
| { |
| nil, |
| }, |
| }, |
| }, |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.Rec1 []v.io/v23/vom/testdata/types.Rec2 []v.io/v23/vom/testdata/types.Rec3 []v.io/v23/vom/testdata/types.Rec4 []v.io/v23/vom/testdata/types.Rec1", |
| Hex: "81e25726030020762e696f2f7632332f766f6d2f74657374646174612f74797065732e526563340129e1e25526030020762e696f2f7632332f766f6d2f74657374646174612f74797065732e52656333012ce1e25326030020762e696f2f7632332f766f6d2f74657374646174612f74797065732e52656332012be15126030020762e696f2f7632332f766f6d2f74657374646174612f74797065732e52656331012ae152050101010100", |
| HexVersion: "81", |
| HexType: "e25726030020762e696f2f7632332f766f6d2f74657374646174612f74797065732e526563340129e1e25526030020762e696f2f7632332f766f6d2f74657374646174612f74797065732e52656333012ce1e25326030020762e696f2f7632332f766f6d2f74657374646174612f74797065732e52656332012be15126030020762e696f2f7632332f766f6d2f74657374646174612f74797065732e52656331012ae1", |
| HexValue: "52050101010100", |
| }, |
| { |
| Name: "types.RecStruct{A: {}}", |
| Value: vdl.ValueOf(types.RecStruct{ |
| A: &types.RecStruct{}, |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.RecStruct struct{A ?v.io/v23/vom/testdata/types.RecStruct}", |
| Hex: "81e25304080129e15131060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e5265635374727563740101000141012ae1e1520300e1e1", |
| HexVersion: "81", |
| HexType: "e25304080129e15131060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e5265635374727563740101000141012ae1e1", |
| HexValue: "520300e1e1", |
| }, |
| { |
| Name: "types.RecStruct{A: {A: {}}}", |
| Value: vdl.ValueOf(types.RecStruct{ |
| A: &types.RecStruct{ |
| A: &types.RecStruct{}, |
| }, |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.RecStruct struct{A ?v.io/v23/vom/testdata/types.RecStruct}", |
| Hex: "81e25304080129e15131060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e5265635374727563740101000141012ae1e152050000e1e1e1", |
| HexVersion: "81", |
| HexType: "e25304080129e15131060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e5265635374727563740101000141012ae1e1", |
| HexValue: "52050000e1e1e1", |
| }, |
| { |
| Name: "types.Rec1234All{A: {A: {{}}, Rec1234: {{}}}, B: {B: {{}}, Rec1234: {{R2: {{}}}}}}", |
| Value: vdl.ValueOf(types.Rec1234All{ |
| A: types.Rec1234A{ |
| A: []types.Rec1234A{ |
| {}, |
| }, |
| Rec1234: []types.Rec1234{ |
| {}, |
| }, |
| }, |
| B: types.Rec1234B{ |
| B: []types.Rec1234B{ |
| {}, |
| }, |
| Rec1234: []types.Rec1234{ |
| { |
| R2: types.Rec2{ |
| nil, |
| }, |
| }, |
| }, |
| }, |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.Rec1234All struct{A v.io/v23/vom/testdata/types.Rec1234A struct{A []v.io/v23/vom/testdata/types.Rec1234A;Rec1234 []v.io/v23/vom/testdata/types.Rec1234 struct{R1 v.io/v23/vom/testdata/types.Rec1 []v.io/v23/vom/testdata/types.Rec2 []v.io/v23/vom/testdata/types.Rec3 []v.io/v23/vom/testdata/types.Rec4 []v.io/v23/vom/testdata/types.Rec1;R2 v.io/v23/vom/testdata/types.Rec2;R3 v.io/v23/vom/testdata/types.Rec3;R4 v.io/v23/vom/testdata/types.Rec4}};B v.io/v23/vom/testdata/types.Rec1234B struct{B []v.io/v23/vom/testdata/types.Rec1234B;Rec1234 []v.io/v23/vom/testdata/types.Rec1234}}", |
| Hex: "81e2550403012ae1e26126030020762e696f2f7632332f766f6d2f74657374646174612f74797065732e52656334012ee1e25f26030020762e696f2f7632332f766f6d2f74657374646174612f74797065732e526563330131e1e25d26030020762e696f2f7632332f766f6d2f74657374646174612f74797065732e526563320130e15b26030020762e696f2f7632332f766f6d2f74657374646174612f74797065732e52656331012fe15945060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e52656331323334010400025231012ee100025232012fe1000252330130e1000252340131e1e1570403012de1533c060024762e696f2f7632332f766f6d2f74657374646174612f74797065732e52656331323334410102000141012be1000752656331323334012ce1e1e26504030132e1633c060024762e696f2f7632332f766f6d2f74657374646174612f74797065732e526563313233344201020001420133e1000752656331323334012ce1e15138060026762e696f2f7632332f766f6d2f74657374646174612f74797065732e52656331323334416c6c0102000141012ae10001420132e1e15214000001e10101e1e1010001e10101010100e1e1e1", |
| HexVersion: "81", |
| HexType: "e2550403012ae1e26126030020762e696f2f7632332f766f6d2f74657374646174612f74797065732e52656334012ee1e25f26030020762e696f2f7632332f766f6d2f74657374646174612f74797065732e526563330131e1e25d26030020762e696f2f7632332f766f6d2f74657374646174612f74797065732e526563320130e15b26030020762e696f2f7632332f766f6d2f74657374646174612f74797065732e52656331012fe15945060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e52656331323334010400025231012ee100025232012fe1000252330130e1000252340131e1e1570403012de1533c060024762e696f2f7632332f766f6d2f74657374646174612f74797065732e52656331323334410102000141012be1000752656331323334012ce1e1e26504030132e1633c060024762e696f2f7632332f766f6d2f74657374646174612f74797065732e526563313233344201020001420133e1000752656331323334012ce1e15138060026762e696f2f7632332f766f6d2f74657374646174612f74797065732e52656331323334416c6c0102000141012ae10001420132e1e1", |
| HexValue: "5214000001e10101e1e1010001e10101010100e1e1e1", |
| }, |
| { |
| Name: "typeobject(any)", |
| Value: vdl.ValueOf(vdl.AnyType), |
| TypeString: "typeobject", |
| Hex: "811c010f00", |
| HexVersion: "81", |
| HexValue: "1c010f00", |
| }, |
| { |
| Name: "typeobject(bool)", |
| Value: vdl.ValueOf(vdl.BoolType), |
| TypeString: "typeobject", |
| Hex: "811c010100", |
| HexVersion: "81", |
| HexValue: "1c010100", |
| }, |
| { |
| Name: "typeobject(uint16)", |
| Value: vdl.ValueOf(vdl.Uint16Type), |
| TypeString: "typeobject", |
| Hex: "811c010400", |
| HexVersion: "81", |
| HexValue: "1c010400", |
| }, |
| { |
| Name: "typeobject(uint32)", |
| Value: vdl.ValueOf(vdl.Uint32Type), |
| TypeString: "typeobject", |
| Hex: "811c010500", |
| HexVersion: "81", |
| HexValue: "1c010500", |
| }, |
| { |
| Name: "typeobject(uint64)", |
| Value: vdl.ValueOf(vdl.Uint64Type), |
| TypeString: "typeobject", |
| Hex: "811c010600", |
| HexVersion: "81", |
| HexValue: "1c010600", |
| }, |
| { |
| Name: "typeobject(int16)", |
| Value: vdl.ValueOf(vdl.Int16Type), |
| TypeString: "typeobject", |
| Hex: "811c010700", |
| HexVersion: "81", |
| HexValue: "1c010700", |
| }, |
| { |
| Name: "typeobject(int32)", |
| Value: vdl.ValueOf(vdl.Int32Type), |
| TypeString: "typeobject", |
| Hex: "811c010800", |
| HexVersion: "81", |
| HexValue: "1c010800", |
| }, |
| { |
| Name: "typeobject(int64)", |
| Value: vdl.ValueOf(vdl.Int64Type), |
| TypeString: "typeobject", |
| Hex: "811c010900", |
| HexVersion: "81", |
| HexValue: "1c010900", |
| }, |
| { |
| Name: "typeobject(int16)", |
| Value: vdl.ValueOf(vdl.Int16Type), |
| TypeString: "typeobject", |
| Hex: "811c010700", |
| HexVersion: "81", |
| HexValue: "1c010700", |
| }, |
| { |
| Name: "typeobject(int32)", |
| Value: vdl.ValueOf(vdl.Int32Type), |
| TypeString: "typeobject", |
| Hex: "811c010800", |
| HexVersion: "81", |
| HexValue: "1c010800", |
| }, |
| { |
| Name: "typeobject(int64)", |
| Value: vdl.ValueOf(vdl.Int64Type), |
| TypeString: "typeobject", |
| Hex: "811c010900", |
| HexVersion: "81", |
| HexValue: "1c010900", |
| }, |
| { |
| Name: "typeobject(float32)", |
| Value: vdl.ValueOf(vdl.Float32Type), |
| TypeString: "typeobject", |
| Hex: "811c010a00", |
| HexVersion: "81", |
| HexValue: "1c010a00", |
| }, |
| { |
| Name: "typeobject(float64)", |
| Value: vdl.ValueOf(vdl.Float64Type), |
| TypeString: "typeobject", |
| Hex: "811c010b00", |
| HexVersion: "81", |
| HexValue: "1c010b00", |
| }, |
| { |
| Name: "typeobject(types.NBool)", |
| Value: vdl.ValueOf(__VDLType_bool_1), |
| TypeString: "typeobject", |
| Hex: "815127000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e426f6f6c0101e11c012900", |
| HexVersion: "81", |
| HexType: "5127000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e426f6f6c0101e1", |
| HexValue: "1c012900", |
| }, |
| { |
| Name: "typeobject(types.NUint16)", |
| Value: vdl.ValueOf(__VDLType_uint16_2), |
| TypeString: "typeobject", |
| Hex: "815129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e55696e7431360104e11c012900", |
| HexVersion: "81", |
| HexType: "5129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e55696e7431360104e1", |
| HexValue: "1c012900", |
| }, |
| { |
| Name: "typeobject(types.NUint32)", |
| Value: vdl.ValueOf(__VDLType_uint32_3), |
| TypeString: "typeobject", |
| Hex: "815129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e55696e7433320105e11c012900", |
| HexVersion: "81", |
| HexType: "5129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e55696e7433320105e1", |
| HexValue: "1c012900", |
| }, |
| { |
| Name: "typeobject(types.NUint64)", |
| Value: vdl.ValueOf(__VDLType_uint64_4), |
| TypeString: "typeobject", |
| Hex: "815129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e55696e7436340106e11c012900", |
| HexVersion: "81", |
| HexType: "5129000023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e55696e7436340106e1", |
| HexValue: "1c012900", |
| }, |
| { |
| Name: "typeobject(types.NInt16)", |
| Value: vdl.ValueOf(__VDLType_int16_5), |
| TypeString: "typeobject", |
| Hex: "815128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7431360107e11c012900", |
| HexVersion: "81", |
| HexType: "5128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7431360107e1", |
| HexValue: "1c012900", |
| }, |
| { |
| Name: "typeobject(types.NInt32)", |
| Value: vdl.ValueOf(__VDLType_int32_6), |
| TypeString: "typeobject", |
| Hex: "815128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7433320108e11c012900", |
| HexVersion: "81", |
| HexType: "5128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7433320108e1", |
| HexValue: "1c012900", |
| }, |
| { |
| Name: "typeobject(types.NInt64)", |
| Value: vdl.ValueOf(__VDLType_int64_7), |
| TypeString: "typeobject", |
| Hex: "815128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7436340109e11c012900", |
| HexVersion: "81", |
| HexType: "5128000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7436340109e1", |
| HexValue: "1c012900", |
| }, |
| { |
| Name: "typeobject(types.NFloat32)", |
| Value: vdl.ValueOf(__VDLType_float32_8), |
| TypeString: "typeobject", |
| Hex: "81512a000024762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e466c6f61743332010ae11c012900", |
| HexVersion: "81", |
| HexType: "512a000024762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e466c6f61743332010ae1", |
| HexValue: "1c012900", |
| }, |
| { |
| Name: "typeobject(types.NFloat64)", |
| Value: vdl.ValueOf(__VDLType_float64_9), |
| TypeString: "typeobject", |
| Hex: "81512a000024762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e466c6f61743634010be11c012900", |
| HexVersion: "81", |
| HexType: "512a000024762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e466c6f61743634010be1", |
| HexValue: "1c012900", |
| }, |
| { |
| Name: "typeobject(types.NArray2Uint64)", |
| Value: vdl.ValueOf(__VDLType_array_10), |
| TypeString: "typeobject", |
| Hex: "815131020029762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e41727261793255696e74363401060202e11c012900", |
| HexVersion: "81", |
| HexType: "5131020029762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e41727261793255696e74363401060202e1", |
| HexValue: "1c012900", |
| }, |
| { |
| Name: "typeobject([]uint64)", |
| Value: vdl.ValueOf(__VDLType_list_11), |
| TypeString: "typeobject", |
| Hex: "815104030106e11c012900", |
| HexVersion: "81", |
| HexType: "5104030106e1", |
| HexValue: "1c012900", |
| }, |
| { |
| Name: "typeobject(types.NListUint64)", |
| Value: vdl.ValueOf(__VDLType_list_12), |
| TypeString: "typeobject", |
| Hex: "81512d030027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4c69737455696e7436340106e11c012900", |
| HexVersion: "81", |
| HexType: "512d030027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4c69737455696e7436340106e1", |
| HexValue: "1c012900", |
| }, |
| { |
| Name: "typeobject(set[uint64])", |
| Value: vdl.ValueOf(__VDLType_set_13), |
| TypeString: "typeobject", |
| Hex: "815104040106e11c012900", |
| HexVersion: "81", |
| HexType: "5104040106e1", |
| HexValue: "1c012900", |
| }, |
| { |
| Name: "typeobject(types.NSetUint64)", |
| Value: vdl.ValueOf(__VDLType_set_14), |
| TypeString: "typeobject", |
| Hex: "81512c040026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53657455696e7436340106e11c012900", |
| HexVersion: "81", |
| HexType: "512c040026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53657455696e7436340106e1", |
| HexValue: "1c012900", |
| }, |
| { |
| Name: "typeobject(map[uint64]string)", |
| Value: vdl.ValueOf(__VDLType_map_15), |
| TypeString: "typeobject", |
| Hex: "8151060501060203e11c012900", |
| HexVersion: "81", |
| HexType: "51060501060203e1", |
| HexValue: "1c012900", |
| }, |
| { |
| Name: "typeobject(types.NMapUint64String)", |
| Value: vdl.ValueOf(__VDLType_map_16), |
| TypeString: "typeobject", |
| Hex: "81513405002c762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4d617055696e743634537472696e6701060203e11c012900", |
| HexVersion: "81", |
| HexType: "513405002c762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4d617055696e743634537472696e6701060203e1", |
| HexValue: "1c012900", |
| }, |
| { |
| Name: "typeobject(types.NStruct)", |
| Value: vdl.ValueOf(__VDLType_struct_17), |
| TypeString: "typeobject", |
| Hex: "81513b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e11c012900", |
| HexVersion: "81", |
| HexType: "513b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1", |
| HexValue: "1c012900", |
| }, |
| { |
| Name: "typeobject(types.NEnum)", |
| Value: vdl.ValueOf(__VDLType_enum_18), |
| TypeString: "typeobject", |
| Hex: "81512d010021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e456e756d0103014101420143e11c012900", |
| HexVersion: "81", |
| HexType: "512d010021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e456e756d0103014101420143e1", |
| HexValue: "1c012900", |
| }, |
| { |
| Name: "typeobject(types.NUnion)", |
| Value: vdl.ValueOf(__VDLType_union_19), |
| TypeString: "typeobject", |
| Hex: "81513a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e11c012900", |
| HexVersion: "81", |
| HexType: "513a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e1", |
| HexValue: "1c012900", |
| }, |
| { |
| Name: "[]typeobject{typeobject(any), typeobject(bool)}", |
| Value: vdl.ValueOf([]*vdl.Type{ |
| vdl.AnyType, |
| vdl.BoolType, |
| }), |
| TypeString: "[]typeobject", |
| Hex: "81510403010ee152020f0103020001", |
| HexVersion: "81", |
| HexType: "510403010ee1", |
| HexValue: "52020f0103020001", |
| }, |
| { |
| Name: "types.StructAny{}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ZeroValue(vdl.AnyType), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152000001e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1", |
| HexValue: "52000001e1", |
| }, |
| { |
| Name: "types.StructAny{Any: false}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(false), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010101010500000000e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1", |
| HexValue: "52010101010500000000e1", |
| }, |
| { |
| Name: "types.StructAny{Any: int16(0)}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(int16(0)), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010701010500000000e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1", |
| HexValue: "52010701010500000000e1", |
| }, |
| { |
| Name: "types.StructAny{Any: int32(0)}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(int32(0)), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010801010500000000e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1", |
| HexValue: "52010801010500000000e1", |
| }, |
| { |
| Name: "types.StructAny{Any: int64(0)}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(int64(0)), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010901010500000000e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1", |
| HexValue: "52010901010500000000e1", |
| }, |
| { |
| Name: "types.StructAny{Any: uint16(0)}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(uint16(0)), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010401010500000000e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1", |
| HexValue: "52010401010500000000e1", |
| }, |
| { |
| Name: "types.StructAny{Any: uint32(0)}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(uint32(0)), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010501010500000000e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1", |
| HexValue: "52010501010500000000e1", |
| }, |
| { |
| Name: "types.StructAny{Any: uint64(0)}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(uint64(0)), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010601010500000000e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1", |
| HexValue: "52010601010500000000e1", |
| }, |
| { |
| Name: "types.StructAny{Any: float32(0)}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(float32(0)), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010a01010500000000e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1", |
| HexValue: "52010a01010500000000e1", |
| }, |
| { |
| Name: "types.StructAny{Any: float64(0)}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(float64(0)), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010b01010500000000e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1", |
| HexValue: "52010b01010500000000e1", |
| }, |
| { |
| Name: "types.StructAny{Any: \"\"}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(""), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010301010500000000e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1", |
| HexValue: "52010301010500000000e1", |
| }, |
| { |
| Name: "types.StructAny{Any: []byte(\"\")}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf([]byte(nil)), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152012701010500000000e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1", |
| HexValue: "52012701010500000000e1", |
| }, |
| { |
| Name: "types.StructAny{Any: types.FoodEnum.Bean}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(types.FoodEnumBean), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1533b010024762e696f2f7632332f766f6d2f74657374646174612f74797065732e466f6f64456e756d0103044265616e044272696506436865727279e152012a01010500000000e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1533b010024762e696f2f7632332f766f6d2f74657374646174612f74797065732e466f6f64456e756d0103044265616e044272696506436865727279e1", |
| HexValue: "52012a01010500000000e1", |
| }, |
| { |
| Name: "types.StructAny{Any: types.NListUint64{}}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(types.NListUint64(nil)), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1532d030027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4c69737455696e7436340106e152012a01010500000000e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1532d030027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4c69737455696e7436340106e1", |
| HexValue: "52012a01010500000000e1", |
| }, |
| { |
| Name: "types.StructAny{Any: types.NByteArray(\"\\x00\\x00\\x00\\x00\")}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(types.NByteArray{}), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1532e020026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465417272617901020204e152012a0105090000000000000000e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1532e020026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465417272617901020204e1", |
| HexValue: "52012a0105090000000000000000e1", |
| }, |
| { |
| Name: "types.StructAny{Any: types.NArray2Uint64{}}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(types.NArray2Uint64{}), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e15331020029762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e41727261793255696e74363401060202e152012a010307000000000000e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e15331020029762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e41727261793255696e74363401060202e1", |
| HexValue: "52012a010307000000000000e1", |
| }, |
| { |
| Name: "types.StructAny{Any: types.NSetUint64{}}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(types.NSetUint64(nil)), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1532c040026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53657455696e7436340106e152012a01010500000000e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1532c040026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53657455696e7436340106e1", |
| HexValue: "52012a01010500000000e1", |
| }, |
| { |
| Name: "types.StructAny{Any: types.NMapUint64String{}}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(types.NMapUint64String(nil)), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1533405002c762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4d617055696e743634537472696e6701060203e152012a01010500000000e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1533405002c762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4d617055696e743634537472696e6701060203e1", |
| HexValue: "52012a01010500000000e1", |
| }, |
| { |
| Name: "types.StructAny{Any: types.NStruct{}}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(types.NStruct{}), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1533b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e152012a010105000000e1e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1533b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1", |
| HexValue: "52012a010105000000e1e1", |
| }, |
| { |
| Name: "types.StructAny{Any: types.NUnion{A: false}}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(types.NUnion(types.NUnionA{})), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1533a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e152012a0102060000000000e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1533a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e1", |
| HexValue: "52012a0102060000000000e1", |
| }, |
| { |
| Name: "types.StructAny{Any: ?types.NStruct(nil)}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf((*types.NStruct)(nil)), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1553b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1530408012be152012a010105000000e0e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1553b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1530408012be1", |
| HexValue: "52012a010105000000e0e1", |
| }, |
| { |
| Name: "types.StructAny{Any: ?types.NStruct{}}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(&types.NStruct{}), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1553b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1530408012be152012a010105000000e1e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1553b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1530408012be1", |
| HexValue: "52012a010105000000e1e1", |
| }, |
| { |
| Name: "types.StructAny{Any: types.StructMap{}}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(types.StructMap{}), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e155060501090209e15333060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e5374727563744d6170010100034d6170012be1e152012a010105000000e1e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e155060501090209e15333060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e5374727563744d6170010100034d6170012be1e1", |
| HexValue: "52012a010105000000e1e1", |
| }, |
| { |
| Name: "types.StructAny{Any: types.StructMap{Map: {0: 0}}}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(types.StructMap{ |
| Map: map[int64]int64{ |
| 0: 0, |
| }, |
| }), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e155060501090209e15333060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e5374727563744d6170010100034d6170012be1e152012a01050900000000010000e1e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e155060501090209e15333060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e5374727563744d6170010100034d6170012be1e1", |
| HexValue: "52012a01050900000000010000e1e1", |
| }, |
| { |
| Name: "types.StructAny{Any: typeobject(any)}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(vdl.AnyType), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152020e0f01010500000001e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1", |
| HexValue: "52020e0f01010500000001e1", |
| }, |
| { |
| Name: "?types.StructAny(nil)", |
| Value: vdl.ValueOf((*types.StructAny)(nil)), |
| TypeString: "?v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815333060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1510408012ae152000001e0", |
| HexVersion: "81", |
| HexType: "5333060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1510408012ae1", |
| HexValue: "52000001e0", |
| }, |
| { |
| Name: "types.StructAny{Any: true}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(true), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010101010500000001e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1", |
| HexValue: "52010101010500000001e1", |
| }, |
| { |
| Name: "types.StructAny{Any: byte(1)}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(byte(1)), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010201010500000001e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1", |
| HexValue: "52010201010500000001e1", |
| }, |
| { |
| Name: "types.StructAny{Any: int16(1)}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(int16(1)), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010701010500000002e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1", |
| HexValue: "52010701010500000002e1", |
| }, |
| { |
| Name: "types.StructAny{Any: int32(1)}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(int32(1)), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010801010500000002e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1", |
| HexValue: "52010801010500000002e1", |
| }, |
| { |
| Name: "types.StructAny{Any: int64(1)}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(int64(1)), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010901010500000002e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1", |
| HexValue: "52010901010500000002e1", |
| }, |
| { |
| Name: "types.StructAny{Any: uint16(1)}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(uint16(1)), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010401010500000001e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1", |
| HexValue: "52010401010500000001e1", |
| }, |
| { |
| Name: "types.StructAny{Any: uint32(1)}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(uint32(1)), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010501010500000001e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1", |
| HexValue: "52010501010500000001e1", |
| }, |
| { |
| Name: "types.StructAny{Any: uint64(1)}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(uint64(1)), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010601010500000001e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1", |
| HexValue: "52010601010500000001e1", |
| }, |
| { |
| Name: "types.StructAny{Any: float32(1)}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(float32(1)), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010a010307000000fef03fe1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1", |
| HexValue: "52010a010307000000fef03fe1", |
| }, |
| { |
| Name: "types.StructAny{Any: float64(1)}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(float64(1)), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152010b010307000000fef03fe1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1", |
| HexValue: "52010b010307000000fef03fe1", |
| }, |
| { |
| Name: "types.StructAny{Any: \"A\"}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf("A"), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e15201030102060000000141e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1", |
| HexValue: "5201030102060000000141e1", |
| }, |
| { |
| Name: "types.StructAny{Any: []byte(\"A\")}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf([]byte("A")), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e15201270102060000000141e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1", |
| HexValue: "5201270102060000000141e1", |
| }, |
| { |
| Name: "types.StructAny{Any: types.FoodEnum.Cherry}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(types.FoodEnumCherry), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1533b010024762e696f2f7632332f766f6d2f74657374646174612f74797065732e466f6f64456e756d0103044265616e044272696506436865727279e152012a01010500000002e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1533b010024762e696f2f7632332f766f6d2f74657374646174612f74797065732e466f6f64456e756d0103044265616e044272696506436865727279e1", |
| HexValue: "52012a01010500000002e1", |
| }, |
| { |
| Name: "types.StructAny{Any: types.NListUint64{1}}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(types.NListUint64{ |
| 1, |
| }), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1532d030027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4c69737455696e7436340106e152012a0102060000000101e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1532d030027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4c69737455696e7436340106e1", |
| HexValue: "52012a0102060000000101e1", |
| }, |
| { |
| Name: "types.StructAny{Any: types.NByteArray(\"Abcd\")}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(types.NByteArray{ |
| 65, |
| 98, |
| 99, |
| 100, |
| }), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1532e020026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465417272617901020204e152012a0105090000000041626364e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1532e020026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465417272617901020204e1", |
| HexValue: "52012a0105090000000041626364e1", |
| }, |
| { |
| Name: "types.StructAny{Any: types.NArray2Uint64{0, 1}}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(types.NArray2Uint64{ |
| 0, |
| 1, |
| }), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e15331020029762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e41727261793255696e74363401060202e152012a010307000000000001e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e15331020029762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e41727261793255696e74363401060202e1", |
| HexValue: "52012a010307000000000001e1", |
| }, |
| { |
| Name: "types.StructAny{Any: types.NSetUint64{1}}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(types.NSetUint64{ |
| 1: struct{}{}, |
| }), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1532c040026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53657455696e7436340106e152012a0102060000000101e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1532c040026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53657455696e7436340106e1", |
| HexValue: "52012a0102060000000101e1", |
| }, |
| { |
| Name: "types.StructAny{Any: types.NMapUint64String{1: \"A\"}}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(types.NMapUint64String{ |
| 1: "A", |
| }), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1533405002c762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4d617055696e743634537472696e6701060203e152012a01040800000001010141e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1533405002c762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4d617055696e743634537472696e6701060203e1", |
| HexValue: "52012a01040800000001010141e1", |
| }, |
| { |
| Name: "types.StructAny{Any: types.NStruct{A: true}}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(types.NStruct{ |
| A: true, |
| }), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1533b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e152012a0103070000000001e1e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1533b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1", |
| HexValue: "52012a0103070000000001e1e1", |
| }, |
| { |
| Name: "types.StructAny{Any: types.NUnion{A: true}}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(types.NUnion(types.NUnionA{true})), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1533a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e152012a0102060000000001e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1533a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e1", |
| HexValue: "52012a0102060000000001e1", |
| }, |
| { |
| Name: "types.StructAny{Any: typeobject(bool)}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(vdl.BoolType), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152020e0101010500000001e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1", |
| HexValue: "52020e0101010500000001e1", |
| }, |
| { |
| Name: "any(nil)", |
| Value: vdl.ZeroValue(vdl.AnyType), |
| TypeString: "any", |
| Hex: "811e000001e0", |
| HexVersion: "81", |
| HexValue: "1e000001e0", |
| }, |
| { |
| Name: "false", |
| Value: vdl.ValueOf(false), |
| TypeString: "bool", |
| Hex: "810200", |
| HexVersion: "81", |
| HexValue: "0200", |
| }, |
| { |
| Name: "byte(0)", |
| Value: vdl.ValueOf(byte(0)), |
| TypeString: "byte", |
| Hex: "810400", |
| HexVersion: "81", |
| HexValue: "0400", |
| }, |
| { |
| Name: "int16(0)", |
| Value: vdl.ValueOf(int16(0)), |
| TypeString: "int16", |
| Hex: "810e00", |
| HexVersion: "81", |
| HexValue: "0e00", |
| }, |
| { |
| Name: "int32(0)", |
| Value: vdl.ValueOf(int32(0)), |
| TypeString: "int32", |
| Hex: "811000", |
| HexVersion: "81", |
| HexValue: "1000", |
| }, |
| { |
| Name: "int64(0)", |
| Value: vdl.ValueOf(int64(0)), |
| TypeString: "int64", |
| Hex: "811200", |
| HexVersion: "81", |
| HexValue: "1200", |
| }, |
| { |
| Name: "uint16(0)", |
| Value: vdl.ValueOf(uint16(0)), |
| TypeString: "uint16", |
| Hex: "810800", |
| HexVersion: "81", |
| HexValue: "0800", |
| }, |
| { |
| Name: "uint32(0)", |
| Value: vdl.ValueOf(uint32(0)), |
| TypeString: "uint32", |
| Hex: "810a00", |
| HexVersion: "81", |
| HexValue: "0a00", |
| }, |
| { |
| Name: "uint64(0)", |
| Value: vdl.ValueOf(uint64(0)), |
| TypeString: "uint64", |
| Hex: "810c00", |
| HexVersion: "81", |
| HexValue: "0c00", |
| }, |
| { |
| Name: "float32(0)", |
| Value: vdl.ValueOf(float32(0)), |
| TypeString: "float32", |
| Hex: "811400", |
| HexVersion: "81", |
| HexValue: "1400", |
| }, |
| { |
| Name: "float64(0)", |
| Value: vdl.ValueOf(float64(0)), |
| TypeString: "float64", |
| Hex: "811600", |
| HexVersion: "81", |
| HexValue: "1600", |
| }, |
| { |
| Name: "\"\"", |
| Value: vdl.ValueOf(""), |
| TypeString: "string", |
| Hex: "810600", |
| HexVersion: "81", |
| HexValue: "0600", |
| }, |
| { |
| Name: "[]byte(\"\")", |
| Value: vdl.ValueOf([]byte(nil)), |
| TypeString: "[]byte", |
| Hex: "814e00", |
| HexVersion: "81", |
| HexValue: "4e00", |
| }, |
| { |
| Name: "types.FoodEnum.Bean", |
| Value: vdl.ValueOf(types.FoodEnumBean), |
| TypeString: "v.io/v23/vom/testdata/types.FoodEnum enum{Bean;Brie;Cherry}", |
| Hex: "81513b010024762e696f2f7632332f766f6d2f74657374646174612f74797065732e466f6f64456e756d0103044265616e044272696506436865727279e15200", |
| HexVersion: "81", |
| HexType: "513b010024762e696f2f7632332f766f6d2f74657374646174612f74797065732e466f6f64456e756d0103044265616e044272696506436865727279e1", |
| HexValue: "5200", |
| }, |
| { |
| Name: "types.NListUint64{}", |
| Value: vdl.ValueOf(types.NListUint64(nil)), |
| TypeString: "v.io/v23/vom/testdata/types.NListUint64 []uint64", |
| Hex: "81512d030027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4c69737455696e7436340106e1520100", |
| HexVersion: "81", |
| HexType: "512d030027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4c69737455696e7436340106e1", |
| HexValue: "520100", |
| }, |
| { |
| Name: "types.NByteArray(\"\\x00\\x00\\x00\\x00\")", |
| Value: vdl.ValueOf(types.NByteArray{}), |
| TypeString: "v.io/v23/vom/testdata/types.NByteArray [4]byte", |
| Hex: "81512e020026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465417272617901020204e1520000000000", |
| HexVersion: "81", |
| HexType: "512e020026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465417272617901020204e1", |
| HexValue: "520000000000", |
| }, |
| { |
| Name: "types.NArray2Uint64{}", |
| Value: vdl.ValueOf(types.NArray2Uint64{}), |
| TypeString: "v.io/v23/vom/testdata/types.NArray2Uint64 [2]uint64", |
| Hex: "815131020029762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e41727261793255696e74363401060202e15203000000", |
| HexVersion: "81", |
| HexType: "5131020029762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e41727261793255696e74363401060202e1", |
| HexValue: "5203000000", |
| }, |
| { |
| Name: "types.NSetUint64{}", |
| Value: vdl.ValueOf(types.NSetUint64(nil)), |
| TypeString: "v.io/v23/vom/testdata/types.NSetUint64 set[uint64]", |
| Hex: "81512c040026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53657455696e7436340106e1520100", |
| HexVersion: "81", |
| HexType: "512c040026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53657455696e7436340106e1", |
| HexValue: "520100", |
| }, |
| { |
| Name: "types.NMapUint64String{}", |
| Value: vdl.ValueOf(types.NMapUint64String(nil)), |
| TypeString: "v.io/v23/vom/testdata/types.NMapUint64String map[uint64]string", |
| Hex: "81513405002c762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4d617055696e743634537472696e6701060203e1520100", |
| HexVersion: "81", |
| HexType: "513405002c762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4d617055696e743634537472696e6701060203e1", |
| HexValue: "520100", |
| }, |
| { |
| Name: "types.NStruct{}", |
| Value: vdl.ValueOf(types.NStruct{}), |
| TypeString: "v.io/v23/vom/testdata/types.NStruct struct{A bool;B string;C int64}", |
| Hex: "81513b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e15201e1", |
| HexVersion: "81", |
| HexType: "513b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1", |
| HexValue: "5201e1", |
| }, |
| { |
| Name: "types.NUnion{A: false}", |
| Value: vdl.ValueOf(types.NUnion(types.NUnionA{})), |
| TypeString: "v.io/v23/vom/testdata/types.NUnion union{A bool;B string;C int64}", |
| Hex: "81513a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e152020000", |
| HexVersion: "81", |
| HexType: "513a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e1", |
| HexValue: "52020000", |
| }, |
| { |
| Name: "typeobject(any)", |
| Value: vdl.ValueOf(vdl.AnyType), |
| TypeString: "typeobject", |
| Hex: "811c010f00", |
| HexVersion: "81", |
| HexValue: "1c010f00", |
| }, |
| { |
| Name: "true", |
| Value: vdl.ValueOf(true), |
| TypeString: "bool", |
| Hex: "810201", |
| HexVersion: "81", |
| HexValue: "0201", |
| }, |
| { |
| Name: "byte(1)", |
| Value: vdl.ValueOf(byte(1)), |
| TypeString: "byte", |
| Hex: "810401", |
| HexVersion: "81", |
| HexValue: "0401", |
| }, |
| { |
| Name: "int16(1)", |
| Value: vdl.ValueOf(int16(1)), |
| TypeString: "int16", |
| Hex: "810e02", |
| HexVersion: "81", |
| HexValue: "0e02", |
| }, |
| { |
| Name: "int32(1)", |
| Value: vdl.ValueOf(int32(1)), |
| TypeString: "int32", |
| Hex: "811002", |
| HexVersion: "81", |
| HexValue: "1002", |
| }, |
| { |
| Name: "int64(1)", |
| Value: vdl.ValueOf(int64(1)), |
| TypeString: "int64", |
| Hex: "811202", |
| HexVersion: "81", |
| HexValue: "1202", |
| }, |
| { |
| Name: "uint16(1)", |
| Value: vdl.ValueOf(uint16(1)), |
| TypeString: "uint16", |
| Hex: "810801", |
| HexVersion: "81", |
| HexValue: "0801", |
| }, |
| { |
| Name: "uint32(1)", |
| Value: vdl.ValueOf(uint32(1)), |
| TypeString: "uint32", |
| Hex: "810a01", |
| HexVersion: "81", |
| HexValue: "0a01", |
| }, |
| { |
| Name: "uint64(1)", |
| Value: vdl.ValueOf(uint64(1)), |
| TypeString: "uint64", |
| Hex: "810c01", |
| HexVersion: "81", |
| HexValue: "0c01", |
| }, |
| { |
| Name: "float32(1)", |
| Value: vdl.ValueOf(float32(1)), |
| TypeString: "float32", |
| Hex: "8114fef03f", |
| HexVersion: "81", |
| HexValue: "14fef03f", |
| }, |
| { |
| Name: "float64(1)", |
| Value: vdl.ValueOf(float64(1)), |
| TypeString: "float64", |
| Hex: "8116fef03f", |
| HexVersion: "81", |
| HexValue: "16fef03f", |
| }, |
| { |
| Name: "\"A\"", |
| Value: vdl.ValueOf("A"), |
| TypeString: "string", |
| Hex: "81060141", |
| HexVersion: "81", |
| HexValue: "060141", |
| }, |
| { |
| Name: "[]byte(\"A\")", |
| Value: vdl.ValueOf([]byte("A")), |
| TypeString: "[]byte", |
| Hex: "814e0141", |
| HexVersion: "81", |
| HexValue: "4e0141", |
| }, |
| { |
| Name: "types.FoodEnum.Cherry", |
| Value: vdl.ValueOf(types.FoodEnumCherry), |
| TypeString: "v.io/v23/vom/testdata/types.FoodEnum enum{Bean;Brie;Cherry}", |
| Hex: "81513b010024762e696f2f7632332f766f6d2f74657374646174612f74797065732e466f6f64456e756d0103044265616e044272696506436865727279e15202", |
| HexVersion: "81", |
| HexType: "513b010024762e696f2f7632332f766f6d2f74657374646174612f74797065732e466f6f64456e756d0103044265616e044272696506436865727279e1", |
| HexValue: "5202", |
| }, |
| { |
| Name: "types.NListUint64{1}", |
| Value: vdl.ValueOf(types.NListUint64{ |
| 1, |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.NListUint64 []uint64", |
| Hex: "81512d030027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4c69737455696e7436340106e152020101", |
| HexVersion: "81", |
| HexType: "512d030027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4c69737455696e7436340106e1", |
| HexValue: "52020101", |
| }, |
| { |
| Name: "types.NByteArray(\"Abcd\")", |
| Value: vdl.ValueOf(types.NByteArray{ |
| 65, |
| 98, |
| 99, |
| 100, |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.NByteArray [4]byte", |
| Hex: "81512e020026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465417272617901020204e1520041626364", |
| HexVersion: "81", |
| HexType: "512e020026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465417272617901020204e1", |
| HexValue: "520041626364", |
| }, |
| { |
| Name: "types.NArray2Uint64{0, 1}", |
| Value: vdl.ValueOf(types.NArray2Uint64{ |
| 0, |
| 1, |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.NArray2Uint64 [2]uint64", |
| Hex: "815131020029762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e41727261793255696e74363401060202e15203000001", |
| HexVersion: "81", |
| HexType: "5131020029762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e41727261793255696e74363401060202e1", |
| HexValue: "5203000001", |
| }, |
| { |
| Name: "types.NSetUint64{1}", |
| Value: vdl.ValueOf(types.NSetUint64{ |
| 1: struct{}{}, |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.NSetUint64 set[uint64]", |
| Hex: "81512c040026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53657455696e7436340106e152020101", |
| HexVersion: "81", |
| HexType: "512c040026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53657455696e7436340106e1", |
| HexValue: "52020101", |
| }, |
| { |
| Name: "types.NMapUint64String{1: \"A\"}", |
| Value: vdl.ValueOf(types.NMapUint64String{ |
| 1: "A", |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.NMapUint64String map[uint64]string", |
| Hex: "81513405002c762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4d617055696e743634537472696e6701060203e1520401010141", |
| HexVersion: "81", |
| HexType: "513405002c762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4d617055696e743634537472696e6701060203e1", |
| HexValue: "520401010141", |
| }, |
| { |
| Name: "types.NStruct{A: true}", |
| Value: vdl.ValueOf(types.NStruct{ |
| A: true, |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.NStruct struct{A bool;B string;C int64}", |
| Hex: "81513b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e152030001e1", |
| HexVersion: "81", |
| HexType: "513b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1", |
| HexValue: "52030001e1", |
| }, |
| { |
| Name: "types.NUnion{A: true}", |
| Value: vdl.ValueOf(types.NUnion(types.NUnionA{true})), |
| TypeString: "v.io/v23/vom/testdata/types.NUnion union{A bool;B string;C int64}", |
| Hex: "81513a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e152020001", |
| HexVersion: "81", |
| HexType: "513a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e1", |
| HexValue: "52020001", |
| }, |
| { |
| Name: "typeobject(bool)", |
| Value: vdl.ValueOf(vdl.BoolType), |
| TypeString: "typeobject", |
| Hex: "811c010100", |
| HexVersion: "81", |
| HexValue: "1c010100", |
| }, |
| { |
| Name: "types.StructManyTypes{}", |
| Value: vdl.ValueOf(types.StructManyTypes{ |
| NUnion: types.NUnionA{}, |
| TypeObject: vdl.AnyType, |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructManyTypes struct{Bool bool;AByte byte;Int16 int16;Int32 int32;Int64 int64;Uint16 uint16;Uint32 uint32;Uint64 uint64;String string;Bytes []byte;Float32 float32;Float64 float64;FoodEnum v.io/v23/vom/testdata/types.FoodEnum enum{Bean;Brie;Cherry};NEnum v.io/v23/vom/testdata/types.NEnum enum{A;B;C};NListUint64 v.io/v23/vom/testdata/types.NListUint64 []uint64;NByteArray v.io/v23/vom/testdata/types.NByteArray [4]byte;NArray2Uint64 v.io/v23/vom/testdata/types.NArray2Uint64 [2]uint64;NSetUint64 v.io/v23/vom/testdata/types.NSetUint64 set[uint64];NMapUint64String v.io/v23/vom/testdata/types.NMapUint64String map[uint64]string;NStruct v.io/v23/vom/testdata/types.NStruct struct{A bool;B string;C int64};NUnion v.io/v23/vom/testdata/types.NUnion union{A bool;B string;C int64};TypeObject typeobject}", |
| Hex: "81533b010024762e696f2f7632332f766f6d2f74657374646174612f74797065732e466f6f64456e756d0103044265616e044272696506436865727279e1552d010021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e456e756d0103014101420143e1572d030027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4c69737455696e7436340106e1592e020026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465417272617901020204e15b31020029762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e41727261793255696e74363401060202e15d2c040026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53657455696e7436340106e15f3405002c762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4d617055696e743634537472696e6701060203e1613b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1633a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e151fe014206002b762e696f2f7632332f766f6d2f74657374646174612f74797065732e5374727563744d616e79547970657301160004426f6f6c0101e1000541427974650102e10005496e7431360107e10005496e7433320108e10005496e7436340109e1000655696e7431360104e1000655696e7433320105e1000655696e7436340106e10006537472696e670103e1000542797465730127e10007466c6f61743332010ae10007466c6f61743634010be10008466f6f64456e756d012ae100054e456e756d012be1000b4e4c69737455696e743634012ce1000a4e427974654172726179012de1000d4e41727261793255696e743634012ee1000a4e53657455696e743634012fe100104e4d617055696e743634537472696e670130e100074e5374727563740131e100064e556e696f6e0132e1000a547970654f626a656374010ee1e1520001e1", |
| HexVersion: "81", |
| HexType: "533b010024762e696f2f7632332f766f6d2f74657374646174612f74797065732e466f6f64456e756d0103044265616e044272696506436865727279e1552d010021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e456e756d0103014101420143e1572d030027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4c69737455696e7436340106e1592e020026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465417272617901020204e15b31020029762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e41727261793255696e74363401060202e15d2c040026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53657455696e7436340106e15f3405002c762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4d617055696e743634537472696e6701060203e1613b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1633a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e151fe014206002b762e696f2f7632332f766f6d2f74657374646174612f74797065732e5374727563744d616e79547970657301160004426f6f6c0101e1000541427974650102e10005496e7431360107e10005496e7433320108e10005496e7436340109e1000655696e7431360104e1000655696e7433320105e1000655696e7436340106e10006537472696e670103e1000542797465730127e10007466c6f61743332010ae10007466c6f61743634010be10008466f6f64456e756d012ae100054e456e756d012be1000b4e4c69737455696e743634012ce1000a4e427974654172726179012de1000d4e41727261793255696e743634012ee1000a4e53657455696e743634012fe100104e4d617055696e743634537472696e670130e100074e5374727563740131e100064e556e696f6e0132e1000a547970654f626a656374010ee1e1", |
| HexValue: "520001e1", |
| }, |
| { |
| Name: "types.StructManyTypes{Bool: true, AByte: 1, Int16: 1, Int32: 1, Int64: 1, Uint16: 1, Uint32: 1, Uint64: 1, String: \"A\", Bytes: \"A\", Float32: 1, Float64: 1, FoodEnum: types.FoodEnum.Cherry, NListUint64: {1}, NByteArray: \"Abcd\", NArray2Uint64: {0, 1}, NSetUint64: {1}, NMapUint64String: {1: \"A\"}, NStruct: {A: true}, NUnion: {A: true}, TypeObject: typeobject(bool)}", |
| Value: vdl.ValueOf(types.StructManyTypes{ |
| Bool: true, |
| AByte: 1, |
| Int16: 1, |
| Int32: 1, |
| Int64: 1, |
| Uint16: 1, |
| Uint32: 1, |
| Uint64: 1, |
| String: "A", |
| Bytes: []byte("A"), |
| Float32: 1, |
| Float64: 1, |
| FoodEnum: types.FoodEnumCherry, |
| NListUint64: types.NListUint64{ |
| 1, |
| }, |
| NByteArray: types.NByteArray{ |
| 65, |
| 98, |
| 99, |
| 100, |
| }, |
| NArray2Uint64: types.NArray2Uint64{ |
| 0, |
| 1, |
| }, |
| NSetUint64: types.NSetUint64{ |
| 1: struct{}{}, |
| }, |
| NMapUint64String: types.NMapUint64String{ |
| 1: "A", |
| }, |
| NStruct: types.NStruct{ |
| A: true, |
| }, |
| NUnion: types.NUnionA{true}, |
| TypeObject: vdl.BoolType, |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructManyTypes struct{Bool bool;AByte byte;Int16 int16;Int32 int32;Int64 int64;Uint16 uint16;Uint32 uint32;Uint64 uint64;String string;Bytes []byte;Float32 float32;Float64 float64;FoodEnum v.io/v23/vom/testdata/types.FoodEnum enum{Bean;Brie;Cherry};NEnum v.io/v23/vom/testdata/types.NEnum enum{A;B;C};NListUint64 v.io/v23/vom/testdata/types.NListUint64 []uint64;NByteArray v.io/v23/vom/testdata/types.NByteArray [4]byte;NArray2Uint64 v.io/v23/vom/testdata/types.NArray2Uint64 [2]uint64;NSetUint64 v.io/v23/vom/testdata/types.NSetUint64 set[uint64];NMapUint64String v.io/v23/vom/testdata/types.NMapUint64String map[uint64]string;NStruct v.io/v23/vom/testdata/types.NStruct struct{A bool;B string;C int64};NUnion v.io/v23/vom/testdata/types.NUnion union{A bool;B string;C int64};TypeObject typeobject}", |
| Hex: "81533b010024762e696f2f7632332f766f6d2f74657374646174612f74797065732e466f6f64456e756d0103044265616e044272696506436865727279e1552d010021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e456e756d0103014101420143e1572d030027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4c69737455696e7436340106e1592e020026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465417272617901020204e15b31020029762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e41727261793255696e74363401060202e15d2c040026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53657455696e7436340106e15f3405002c762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4d617055696e743634537472696e6701060203e1613b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1633a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e151fe014206002b762e696f2f7632332f766f6d2f74657374646174612f74797065732e5374727563744d616e79547970657301160004426f6f6c0101e1000541427974650102e10005496e7431360107e10005496e7433320108e10005496e7436340109e1000655696e7431360104e1000655696e7433320105e1000655696e7436340106e10006537472696e670103e1000542797465730127e10007466c6f61743332010ae10007466c6f61743634010be10008466f6f64456e756d012ae100054e456e756d012be1000b4e4c69737455696e743634012ce1000a4e427974654172726179012de1000d4e41727261793255696e743634012ee1000a4e53657455696e743634012fe100104e4d617055696e743634537472696e670130e100074e5374727563740131e100064e556e696f6e0132e1000a547970654f626a656374010ee1e15201013f000101010202030204020501060107010801410901410afef03f0bfef03f0c020e01010f0041626364100000011101011201010141130001e11400011500e1", |
| HexVersion: "81", |
| HexType: "533b010024762e696f2f7632332f766f6d2f74657374646174612f74797065732e466f6f64456e756d0103044265616e044272696506436865727279e1552d010021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e456e756d0103014101420143e1572d030027762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4c69737455696e7436340106e1592e020026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e42797465417272617901020204e15b31020029762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e41727261793255696e74363401060202e15d2c040026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53657455696e7436340106e15f3405002c762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e4d617055696e743634537472696e6701060203e1613b060023762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e53747275637401030001410101e10001420103e10001430109e1e1633a070022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e556e696f6e01030001410101e10001420103e10001430109e1e151fe014206002b762e696f2f7632332f766f6d2f74657374646174612f74797065732e5374727563744d616e79547970657301160004426f6f6c0101e1000541427974650102e10005496e7431360107e10005496e7433320108e10005496e7436340109e1000655696e7431360104e1000655696e7433320105e1000655696e7436340106e10006537472696e670103e1000542797465730127e10007466c6f61743332010ae10007466c6f61743634010be10008466f6f64456e756d012ae100054e456e756d012be1000b4e4c69737455696e743634012ce1000a4e427974654172726179012de1000d4e41727261793255696e743634012ee1000a4e53657455696e743634012fe100104e4d617055696e743634537472696e670130e100074e5374727563740131e100064e556e696f6e0132e1000a547970654f626a656374010ee1e1", |
| HexValue: "5201013f000101010202030204020501060107010801410901410afef03f0bfef03f0c020e01010f0041626364100000011101011201010141130001e11400011500e1", |
| }, |
| { |
| Name: "types.AnySlice{types.NInt16(1), types.NInt32(2), types.NInt64(3), types.NInt32(4)}", |
| Value: vdl.ValueOf(types.AnySlice{ |
| vdl.ValueOf(types.NInt16(1)), |
| vdl.ValueOf(types.NInt32(2)), |
| vdl.ValueOf(types.NInt64(3)), |
| vdl.ValueOf(types.NInt32(4)), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.AnySlice []any", |
| Hex: "81512a030024762e696f2f7632332f766f6d2f74657374646174612f74797065732e416e79536c696365010fe15328000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7431360107e15528000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7433320108e15728000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7436340109e152032a2b2c04010101010d04000002010104020206010308", |
| HexVersion: "81", |
| HexType: "512a030024762e696f2f7632332f766f6d2f74657374646174612f74797065732e416e79536c696365010fe15328000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7431360107e15528000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7433320108e15728000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7436340109e1", |
| HexValue: "52032a2b2c04010101010d04000002010104020206010308", |
| }, |
| { |
| Name: "[]types.StructAny{{Any: types.NInt16(1)}, {Any: types.NInt32(2)}, {Any: types.NInt64(3)}, {Any: types.NInt32(4)}}", |
| Value: vdl.ValueOf([]types.StructAny{ |
| { |
| Any: vdl.ValueOf(types.NInt16(1)), |
| }, |
| { |
| Any: vdl.ValueOf(types.NInt32(2)), |
| }, |
| { |
| Any: vdl.ValueOf(types.NInt64(3)), |
| }, |
| { |
| Any: vdl.ValueOf(types.NInt32(4)), |
| }, |
| }), |
| TypeString: "[]v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815333060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1510403012ae15528000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7431360107e15728000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7433320108e15928000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7436340109e152032b2c2d0401010101150400000002e100010104e100020206e100010308e1", |
| HexVersion: "81", |
| HexType: "5333060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1510403012ae15528000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7431360107e15728000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7433320108e15928000022762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e7436340109e1", |
| HexValue: "52032b2c2d0401010101150400000002e100010104e100020206e100010308e1", |
| }, |
| { |
| Name: "int8(0)", |
| Value: vdl.ValueOf(int8(0)), |
| TypeString: "int8", |
| Hex: "812000", |
| HexVersion: "81", |
| HexValue: "2000", |
| }, |
| { |
| Name: "int8(-128)", |
| Value: vdl.ValueOf(int8(-128)), |
| TypeString: "int8", |
| Hex: "8120ffff", |
| HexVersion: "81", |
| HexValue: "20ffff", |
| }, |
| { |
| Name: "int8(127)", |
| Value: vdl.ValueOf(int8(127)), |
| TypeString: "int8", |
| Hex: "8120fffe", |
| HexVersion: "81", |
| HexValue: "20fffe", |
| }, |
| { |
| Name: "types.NInt8(0)", |
| Value: vdl.ValueOf(types.NInt8(0)), |
| TypeString: "v.io/v23/vom/testdata/types.NInt8 int8", |
| Hex: "815127000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e74380110e15200", |
| HexVersion: "81", |
| HexType: "5127000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e74380110e1", |
| HexValue: "5200", |
| }, |
| { |
| Name: "types.NInt8(-128)", |
| Value: vdl.ValueOf(types.NInt8(-128)), |
| TypeString: "v.io/v23/vom/testdata/types.NInt8 int8", |
| Hex: "815127000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e74380110e152ffff", |
| HexVersion: "81", |
| HexType: "5127000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e74380110e1", |
| HexValue: "52ffff", |
| }, |
| { |
| Name: "types.NInt8(127)", |
| Value: vdl.ValueOf(types.NInt8(127)), |
| TypeString: "v.io/v23/vom/testdata/types.NInt8 int8", |
| Hex: "815127000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e74380110e152fffe", |
| HexVersion: "81", |
| HexType: "5127000021762e696f2f7632332f766f6d2f74657374646174612f74797065732e4e496e74380110e1", |
| HexValue: "52fffe", |
| }, |
| { |
| Name: "int8(0)", |
| Value: vdl.ValueOf(int8(0)), |
| TypeString: "int8", |
| Hex: "812000", |
| HexVersion: "81", |
| HexValue: "2000", |
| }, |
| { |
| Name: "int8(1)", |
| Value: vdl.ValueOf(int8(1)), |
| TypeString: "int8", |
| Hex: "812002", |
| HexVersion: "81", |
| HexValue: "2002", |
| }, |
| { |
| Name: "typeobject(int8)", |
| Value: vdl.ValueOf(vdl.Int8Type), |
| TypeString: "typeobject", |
| Hex: "811c011000", |
| HexVersion: "81", |
| HexValue: "1c011000", |
| }, |
| { |
| Name: "types.MInt8Slice{-128, -1, 0, 127}", |
| Value: vdl.ValueOf(types.MInt8Slice{ |
| -128, |
| -1, |
| 0, |
| 127, |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.MInt8Slice []int8", |
| Hex: "81512c030026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d496e7438536c6963650110e1520704ffff0100fffe", |
| HexVersion: "81", |
| HexType: "512c030026762e696f2f7632332f766f6d2f74657374646174612f74797065732e4d496e7438536c6963650110e1", |
| HexValue: "520704ffff0100fffe", |
| }, |
| { |
| Name: "types.StructAny{Any: int8(1)}", |
| Value: vdl.ValueOf(types.StructAny{ |
| Any: vdl.ValueOf(int8(1)), |
| }), |
| TypeString: "v.io/v23/vom/testdata/types.StructAny struct{Any any}", |
| Hex: "815133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e152011001010500000002e1", |
| HexVersion: "81", |
| HexType: "5133060025762e696f2f7632332f766f6d2f74657374646174612f74797065732e537472756374416e7901010003416e79010fe1e1", |
| HexValue: "52011001010500000002e1", |
| }, |
| } |
| |
| // CompatTests contains the testcases to use to test vom type compatibility. |
| // CompatTests maps TestName (string) to CompatibleTypeSet ([]typeobject) |
| // Each CompatibleTypeSet contains types compatible with each other. However, |
| // types from different CompatibleTypeSets are incompatible. |
| var CompatTests = map[string][]*vdl.Type{ |
| "bool": { |
| vdl.BoolType, |
| __VDLType_bool_1, |
| __VDLType_bool_20, |
| }, |
| "map[X]bool/set[X]": { |
| __VDLType_map_21, |
| __VDLType_set_22, |
| __VDLType_map_23, |
| }, |
| "map[string]X/struct": { |
| __VDLType_struct_24, |
| __VDLType_map_25, |
| }, |
| "map[string]bool/set[string]/struct": { |
| __VDLType_struct_26, |
| __VDLType_map_27, |
| __VDLType_set_28, |
| }, |
| "number list/array": { |
| __VDLType_list_29, |
| __VDLType_array_10, |
| __VDLType_list_12, |
| }, |
| "number": { |
| vdl.Uint16Type, |
| vdl.Uint32Type, |
| vdl.Uint64Type, |
| vdl.Int16Type, |
| vdl.Int32Type, |
| vdl.Int64Type, |
| vdl.Float32Type, |
| vdl.Float64Type, |
| __VDLType_uint16_2, |
| __VDLType_uint32_3, |
| __VDLType_uint64_4, |
| __VDLType_int16_5, |
| __VDLType_int32_6, |
| __VDLType_int64_7, |
| __VDLType_float32_8, |
| __VDLType_float64_9, |
| }, |
| "string list/array": { |
| __VDLType_list_30, |
| __VDLType_list_31, |
| __VDLType_array_32, |
| __VDLType_array_33, |
| }, |
| "string/[]byte/enum": { |
| vdl.StringType, |
| __VDLType_string_34, |
| __VDLType_list_35, |
| __VDLType_list_36, |
| __VDLType_array_37, |
| __VDLType_enum_18, |
| }, |
| "struct A": { |
| __VDLType_struct_17, |
| __VDLType_struct_38, |
| __VDLType_struct_39, |
| }, |
| "struct Z": { |
| __VDLType_struct_40, |
| __VDLType_struct_41, |
| __VDLType_struct_42, |
| }, |
| "typeobject": { |
| vdl.TypeObjectType, |
| }, |
| "union B": { |
| __VDLType_union_19, |
| __VDLType_union_43, |
| }, |
| } |
| |
| // ConvertTests contains the testcases to check vom value convertibility. |
| // ConvertTests maps TestName (string) to ConvertGroups ([]ConvertGroup) |
| // Each ConvertGroup is a struct with 'Name', 'PrimaryType', and 'Values'. |
| // The values within a ConvertGroup can convert between themselves w/o error. |
| // However, values in higher-indexed ConvertGroups will error when converting up |
| // to the primary type of the lower-indexed ConvertGroups. |
| var ConvertTests = map[string][]types.ConvertGroup{ |
| "array/list": { |
| { |
| Name: "[3]string", |
| PrimaryType: __VDLType_array_32, |
| Values: []*vdl.Value{ |
| vdl.ValueOf(types.Array3String{ |
| "A", |
| "B", |
| "C", |
| }), |
| vdl.ValueOf([]string{ |
| "A", |
| "B", |
| "C", |
| }), |
| }, |
| }, |
| { |
| Name: "[4]string", |
| PrimaryType: __VDLType_array_33, |
| Values: []*vdl.Value{ |
| vdl.ValueOf(types.Array4String{ |
| "D", |
| "E", |
| "F", |
| "G", |
| }), |
| }, |
| }, |
| { |
| Name: "ByteArray", |
| PrimaryType: __VDLType_array_37, |
| Values: []*vdl.Value{ |
| vdl.ValueOf(types.NByteArray{ |
| 5, |
| 2, |
| 0, |
| 4, |
| }), |
| vdl.ValueOf([]byte("\x05\x02\x00\x04")), |
| }, |
| }, |
| }, |
| "bool": { |
| { |
| Name: "bool", |
| PrimaryType: vdl.BoolType, |
| Values: []*vdl.Value{ |
| vdl.ValueOf(true), |
| vdl.ValueOf(types.NBool(true)), |
| vdl.ValueOf(types.MBool(true)), |
| }, |
| }, |
| }, |
| "number": { |
| { |
| Name: "byte", |
| PrimaryType: vdl.ByteType, |
| Values: []*vdl.Value{ |
| vdl.ValueOf(byte(3)), |
| vdl.ValueOf(uint16(3)), |
| vdl.ValueOf(int32(3)), |
| vdl.ValueOf(float64(3)), |
| vdl.ValueOf(int64(3)), |
| }, |
| }, |
| { |
| Name: "uint16", |
| PrimaryType: vdl.Uint16Type, |
| Values: []*vdl.Value{ |
| vdl.ValueOf(uint16(256)), |
| vdl.ValueOf(int32(256)), |
| vdl.ValueOf(float64(256)), |
| vdl.ValueOf(int64(256)), |
| }, |
| }, |
| { |
| Name: "int32", |
| PrimaryType: vdl.Int32Type, |
| Values: []*vdl.Value{ |
| vdl.ValueOf(int32(-5)), |
| vdl.ValueOf(float64(-5)), |
| vdl.ValueOf(int64(-5)), |
| }, |
| }, |
| { |
| Name: "float64", |
| PrimaryType: vdl.Float64Type, |
| Values: []*vdl.Value{ |
| vdl.ValueOf(float64(3.3)), |
| }, |
| }, |
| { |
| Name: "int64", |
| PrimaryType: vdl.Int64Type, |
| Values: []*vdl.Value{ |
| vdl.ValueOf(int64(-9223372036854775808)), |
| }, |
| }, |
| }, |
| "string and enum": { |
| { |
| Name: "enum (A)", |
| PrimaryType: __VDLType_enum_18, |
| Values: []*vdl.Value{ |
| vdl.ValueOf("A"), |
| vdl.ValueOf(types.NString("A")), |
| vdl.ValueOf(types.NEnumA), |
| }, |
| }, |
| { |
| Name: "enum (brie)", |
| PrimaryType: __VDLType_enum_44, |
| Values: []*vdl.Value{ |
| vdl.ValueOf("Brie"), |
| vdl.ValueOf(types.NString("Brie")), |
| vdl.ValueOf(types.BrieEnumBrie), |
| vdl.ValueOf(types.FoodEnumBrie), |
| }, |
| }, |
| { |
| Name: "string", |
| PrimaryType: __VDLType_string_34, |
| Values: []*vdl.Value{ |
| vdl.ValueOf("Cherry"), |
| vdl.ValueOf(types.NString("Cherry")), |
| vdl.ValueOf(types.FoodEnumCherry), |
| }, |
| }, |
| }, |
| "struct, map, and set": { |
| { |
| Name: "map[uint32]uint32", |
| PrimaryType: __VDLType_map_45, |
| Values: []*vdl.Value{ |
| vdl.ValueOf(types.MapOnlyA{ |
| 4: 0, |
| 6: 7, |
| }), |
| vdl.ValueOf(types.MapOnlyA2{ |
| 4: 0, |
| 6: 7, |
| }), |
| }, |
| }, |
| { |
| Name: "map[bool]string", |
| PrimaryType: __VDLType_map_46, |
| Values: []*vdl.Value{ |
| vdl.ValueOf(types.MapOnlyB{ |
| true: "hello", |
| }), |
| vdl.ValueOf(types.MapOnlyB2{ |
| true: "hello", |
| }), |
| }, |
| }, |
| { |
| Name: "set[bool]", |
| PrimaryType: __VDLType_set_47, |
| Values: []*vdl.Value{ |
| vdl.ValueOf(types.SetOnlyA{ |
| false: struct{}{}, |
| true: struct{}{}, |
| }), |
| vdl.ValueOf(types.SetOnlyA2{ |
| false: struct{}{}, |
| true: struct{}{}, |
| }), |
| }, |
| }, |
| { |
| Name: "set[int16]", |
| PrimaryType: __VDLType_set_48, |
| Values: []*vdl.Value{ |
| vdl.ValueOf(types.SetOnlyB{ |
| 4: struct{}{}, |
| 6: struct{}{}, |
| }), |
| vdl.ValueOf(types.SetOnlyB2{ |
| 4: struct{}{}, |
| 6: struct{}{}, |
| }), |
| }, |
| }, |
| { |
| Name: "structABC", |
| PrimaryType: __VDLType_struct_38, |
| Values: []*vdl.Value{ |
| vdl.ValueOf(types.AbcStruct{ |
| A: true, |
| }), |
| vdl.ValueOf(types.AdeStruct{ |
| A: true, |
| D: vdl.ZeroValue(vdl.AnyType), |
| E: vdl.AnyType, |
| }), |
| vdl.ValueOf(types.NStruct{ |
| A: true, |
| }), |
| }, |
| }, |
| { |
| Name: "structYz", |
| PrimaryType: __VDLType_struct_41, |
| Values: []*vdl.Value{ |
| vdl.ValueOf(types.XyzStruct{ |
| Z: "ahoy", |
| }), |
| vdl.ValueOf(types.YzStruct{ |
| Z: "ahoy", |
| }), |
| vdl.ValueOf(types.ZStruct{ |
| Z: "ahoy", |
| }), |
| }, |
| }, |
| { |
| Name: "struct+map", |
| PrimaryType: __VDLType_struct_24, |
| Values: []*vdl.Value{ |
| vdl.ValueOf(types.StructOnlyMap{ |
| "Key1": 4, |
| "Key2": 5, |
| }), |
| vdl.ValueOf(types.MapOnlyStruct{ |
| Key1: 4, |
| Key2: 5, |
| }), |
| }, |
| }, |
| { |
| Name: "map+set", |
| PrimaryType: __VDLType_set_22, |
| Values: []*vdl.Value{ |
| vdl.ValueOf(types.MapOnlySet{ |
| 3.14: struct{}{}, |
| 8: struct{}{}, |
| }), |
| vdl.ValueOf(types.SometimesSetMap{ |
| 3.14: vdl.ValueOf(true), |
| 8: vdl.ValueOf(true), |
| }), |
| vdl.ValueOf(types.SetOnlyMap{ |
| 3.14: true, |
| 8: true, |
| }), |
| }, |
| }, |
| { |
| Name: "map-set", |
| PrimaryType: __VDLType_map_21, |
| Values: []*vdl.Value{ |
| vdl.ValueOf(types.SometimesSetMap{ |
| 3.14: vdl.ValueOf("cannot be a set anymore"), |
| 8: vdl.ValueOf(true), |
| }), |
| }, |
| }, |
| { |
| Name: "struct+map+set", |
| PrimaryType: __VDLType_set_28, |
| Values: []*vdl.Value{ |
| vdl.ValueOf(types.MapStructSet{ |
| "Eel": struct{}{}, |
| "Feat": struct{}{}, |
| "Tire": struct{}{}, |
| }), |
| vdl.ValueOf(types.SetStructMap{ |
| "Eel": true, |
| "Feat": true, |
| "Tire": true, |
| }), |
| vdl.ValueOf(types.MapSetStruct{ |
| Feat: true, |
| Tire: true, |
| Eel: true, |
| }), |
| }, |
| }, |
| }, |
| "typeobject": { |
| { |
| Name: "typeobject(any)", |
| PrimaryType: vdl.TypeObjectType, |
| Values: []*vdl.Value{ |
| vdl.ValueOf(vdl.AnyType), |
| }, |
| }, |
| }, |
| "union": { |
| { |
| Name: "BdeUnion", |
| PrimaryType: __VDLType_union_43, |
| Values: []*vdl.Value{ |
| vdl.ValueOf(types.BdeUnion(types.BdeUnionB{"bde"})), |
| vdl.ValueOf(types.NUnion(types.NUnionB{"bde"})), |
| }, |
| }, |
| { |
| Name: "BdeUnion fail", |
| PrimaryType: __VDLType_union_19, |
| Values: []*vdl.Value{ |
| vdl.ValueOf(types.NUnion(types.NUnionA{true})), |
| }, |
| }, |
| }, |
| } |
| |
| // Hold type definitions in package-level variables, for better performance. |
| var ( |
| __VDLType_bool_1 *vdl.Type |
| __VDLType_uint16_2 *vdl.Type |
| __VDLType_uint32_3 *vdl.Type |
| __VDLType_uint64_4 *vdl.Type |
| __VDLType_int16_5 *vdl.Type |
| __VDLType_int32_6 *vdl.Type |
| __VDLType_int64_7 *vdl.Type |
| __VDLType_float32_8 *vdl.Type |
| __VDLType_float64_9 *vdl.Type |
| __VDLType_array_10 *vdl.Type |
| __VDLType_list_11 *vdl.Type |
| __VDLType_list_12 *vdl.Type |
| __VDLType_set_13 *vdl.Type |
| __VDLType_set_14 *vdl.Type |
| __VDLType_map_15 *vdl.Type |
| __VDLType_map_16 *vdl.Type |
| __VDLType_struct_17 *vdl.Type |
| __VDLType_enum_18 *vdl.Type |
| __VDLType_union_19 *vdl.Type |
| __VDLType_bool_20 *vdl.Type |
| __VDLType_map_21 *vdl.Type |
| __VDLType_set_22 *vdl.Type |
| __VDLType_map_23 *vdl.Type |
| __VDLType_struct_24 *vdl.Type |
| __VDLType_map_25 *vdl.Type |
| __VDLType_struct_26 *vdl.Type |
| __VDLType_map_27 *vdl.Type |
| __VDLType_set_28 *vdl.Type |
| __VDLType_list_29 *vdl.Type |
| __VDLType_list_30 *vdl.Type |
| __VDLType_list_31 *vdl.Type |
| __VDLType_array_32 *vdl.Type |
| __VDLType_array_33 *vdl.Type |
| __VDLType_string_34 *vdl.Type |
| __VDLType_list_35 *vdl.Type |
| __VDLType_list_36 *vdl.Type |
| __VDLType_array_37 *vdl.Type |
| __VDLType_struct_38 *vdl.Type |
| __VDLType_struct_39 *vdl.Type |
| __VDLType_struct_40 *vdl.Type |
| __VDLType_struct_41 *vdl.Type |
| __VDLType_struct_42 *vdl.Type |
| __VDLType_union_43 *vdl.Type |
| __VDLType_enum_44 *vdl.Type |
| __VDLType_map_45 *vdl.Type |
| __VDLType_map_46 *vdl.Type |
| __VDLType_set_47 *vdl.Type |
| __VDLType_set_48 *vdl.Type |
| ) |
| |
| var __VDLInitCalled bool |
| |
| // __VDLInit performs vdl initialization. It is safe to call multiple times. |
| // If you have an init ordering issue, just insert the following line verbatim |
| // into your source files in this package, right after the "package foo" clause: |
| // |
| // var _ = __VDLInit() |
| // |
| // The purpose of this function is to ensure that vdl initialization occurs in |
| // the right order, and very early in the init sequence. In particular, vdl |
| // registration and package variable initialization needs to occur before |
| // functions like vdl.TypeOf will work properly. |
| // |
| // This function returns a dummy value, so that it can be used to initialize the |
| // first var in the file, to take advantage of Go's defined init order. |
| func __VDLInit() struct{} { |
| if __VDLInitCalled { |
| return struct{}{} |
| } |
| __VDLInitCalled = true |
| |
| // Initialize type definitions. |
| __VDLType_bool_1 = vdl.TypeOf((*types.NBool)(nil)) |
| __VDLType_uint16_2 = vdl.TypeOf((*types.NUint16)(nil)) |
| __VDLType_uint32_3 = vdl.TypeOf((*types.NUint32)(nil)) |
| __VDLType_uint64_4 = vdl.TypeOf((*types.NUint64)(nil)) |
| __VDLType_int16_5 = vdl.TypeOf((*types.NInt16)(nil)) |
| __VDLType_int32_6 = vdl.TypeOf((*types.NInt32)(nil)) |
| __VDLType_int64_7 = vdl.TypeOf((*types.NInt64)(nil)) |
| __VDLType_float32_8 = vdl.TypeOf((*types.NFloat32)(nil)) |
| __VDLType_float64_9 = vdl.TypeOf((*types.NFloat64)(nil)) |
| __VDLType_array_10 = vdl.TypeOf((*types.NArray2Uint64)(nil)) |
| __VDLType_list_11 = vdl.TypeOf((*[]uint64)(nil)) |
| __VDLType_list_12 = vdl.TypeOf((*types.NListUint64)(nil)) |
| __VDLType_set_13 = vdl.TypeOf((*map[uint64]struct{})(nil)) |
| __VDLType_set_14 = vdl.TypeOf((*types.NSetUint64)(nil)) |
| __VDLType_map_15 = vdl.TypeOf((*map[uint64]string)(nil)) |
| __VDLType_map_16 = vdl.TypeOf((*types.NMapUint64String)(nil)) |
| __VDLType_struct_17 = vdl.TypeOf((*types.NStruct)(nil)).Elem() |
| __VDLType_enum_18 = vdl.TypeOf((*types.NEnum)(nil)) |
| __VDLType_union_19 = vdl.TypeOf((*types.NUnion)(nil)) |
| __VDLType_bool_20 = vdl.TypeOf((*types.MBool)(nil)) |
| __VDLType_map_21 = vdl.TypeOf((*types.SetOnlyMap)(nil)) |
| __VDLType_set_22 = vdl.TypeOf((*types.MapOnlySet)(nil)) |
| __VDLType_map_23 = vdl.TypeOf((*types.SometimesSetMap)(nil)) |
| __VDLType_struct_24 = vdl.TypeOf((*types.MapOnlyStruct)(nil)).Elem() |
| __VDLType_map_25 = vdl.TypeOf((*types.StructOnlyMap)(nil)) |
| __VDLType_struct_26 = vdl.TypeOf((*types.MapSetStruct)(nil)).Elem() |
| __VDLType_map_27 = vdl.TypeOf((*types.SetStructMap)(nil)) |
| __VDLType_set_28 = vdl.TypeOf((*types.MapStructSet)(nil)) |
| __VDLType_list_29 = vdl.TypeOf((*[]int32)(nil)) |
| __VDLType_list_30 = vdl.TypeOf((*[]string)(nil)) |
| __VDLType_list_31 = vdl.TypeOf((*types.ListString)(nil)) |
| __VDLType_array_32 = vdl.TypeOf((*types.Array3String)(nil)) |
| __VDLType_array_33 = vdl.TypeOf((*types.Array4String)(nil)) |
| __VDLType_string_34 = vdl.TypeOf((*types.NString)(nil)) |
| __VDLType_list_35 = vdl.TypeOf((*[]byte)(nil)) |
| __VDLType_list_36 = vdl.TypeOf((*types.NByteSlice)(nil)) |
| __VDLType_array_37 = vdl.TypeOf((*types.NByteArray)(nil)) |
| __VDLType_struct_38 = vdl.TypeOf((*types.AbcStruct)(nil)).Elem() |
| __VDLType_struct_39 = vdl.TypeOf((*types.AdeStruct)(nil)).Elem() |
| __VDLType_struct_40 = vdl.TypeOf((*types.XyzStruct)(nil)).Elem() |
| __VDLType_struct_41 = vdl.TypeOf((*types.YzStruct)(nil)).Elem() |
| __VDLType_struct_42 = vdl.TypeOf((*types.ZStruct)(nil)).Elem() |
| __VDLType_union_43 = vdl.TypeOf((*types.BdeUnion)(nil)) |
| __VDLType_enum_44 = vdl.TypeOf((*types.BrieEnum)(nil)) |
| __VDLType_map_45 = vdl.TypeOf((*types.MapOnlyA)(nil)) |
| __VDLType_map_46 = vdl.TypeOf((*types.MapOnlyB)(nil)) |
| __VDLType_set_47 = vdl.TypeOf((*types.SetOnlyA)(nil)) |
| __VDLType_set_48 = vdl.TypeOf((*types.SetOnlyB)(nil)) |
| |
| return struct{}{} |
| } |