diff --git a/device.go b/device.go index 3c8b83c24d..994aa39705 100644 --- a/device.go +++ b/device.go @@ -42,15 +42,13 @@ const ( ) var ( - sysBusPrefix = sysfsDir + "/bus/pci/devices" - pciBusRescanFile = sysfsDir + "/bus/pci/rescan" - pciBusPathFormat = "%s/%s/pci_bus/" - systemDevPath = "/dev" - getSCSIDevPath = getSCSIDevPathImpl - getPmemDevPath = getPmemDevPathImpl - getPCIDeviceName = getPCIDeviceNameImpl - getDevicePCIAddress = getDevicePCIAddressImpl - scanSCSIBus = scanSCSIBusImpl + pciBusRescanFile = sysfsDir + "/bus/pci/rescan" + systemDevPath = "/dev" + getSCSIDevPath = getSCSIDevPathImpl + getPmemDevPath = getPmemDevPathImpl + getPCIDeviceName = getPCIDeviceNameImpl + pciPathToSysfs = pciPathToSysfsImpl + scanSCSIBus = scanSCSIBusImpl ) // CCW variables @@ -79,6 +77,18 @@ type devIndexEntry struct { } type devIndex map[string]devIndexEntry +// Guest-side PCI path, identifies a PCI device by where it sits in +// the PCI topology. +// +// Has the format "xx/.../yy/zz" Here, zz is the slot of the device on +// its PCI bridge, yy is the slot of the bridge on its parent bridge +// and so forth until xx is the slot of the "most upstream" bridge on +// the root bus. If a device is connected directly to the root bus, +// its pciPath is just "zz" +type PciPath struct { + path string +} + type deviceHandler func(ctx context.Context, device pb.Device, spec *pb.Spec, s *sandbox, devIdx devIndex) error var deviceHandlerList = map[string]deviceHandler{ @@ -93,47 +103,42 @@ func rescanPciBus() error { return ioutil.WriteFile(pciBusRescanFile, []byte{'1'}, pciBusMode) } -// getDevicePCIAddress fetches the complete PCI address in sysfs, based on the PCI -// identifier provided. This should be in the format: "bridgeAddr/deviceAddr". -// Here, bridgeAddr is the address at which the brige is attached on the root bus, -// while deviceAddr is the address at which the device is attached on the bridge. -func getDevicePCIAddressImpl(pciID string) (string, error) { - tokens := strings.Split(pciID, "/") - - if len(tokens) != 2 { - return "", fmt.Errorf("PCI Identifier for device should be of format [bridgeAddr/deviceAddr], got %s", pciID) - } +// pciPathToSysfs fetches the sysfs path for a PCI path, relative to +// the syfs path for the PCI host bridge, based on the PCI path +// provided. +func pciPathToSysfsImpl(pciPath PciPath) (string, error) { + var relPath string + bus := "0000:00" - bridgeID := tokens[0] - deviceID := tokens[1] + tokens := strings.Split(pciPath.path, "/") - // Deduce the complete bridge address based on the bridge address identifier passed - // and the fact that bridges are attached on the main bus with function 0. - pciBridgeAddr := fmt.Sprintf("0000:00:%s.0", bridgeID) + for i, slot := range tokens { + // Full PCI address of this device along the path + bdf := fmt.Sprintf("%s:%s.0", bus, slot) - // Find out the bus exposed by bridge - bridgeBusPath := fmt.Sprintf(pciBusPathFormat, sysBusPrefix, pciBridgeAddr) + relPath = filepath.Join(relPath, bdf) - files, err := ioutil.ReadDir(bridgeBusPath) - if err != nil { - return "", fmt.Errorf("Error with getting bridge pci bus : %s", err) - } + if i == len(tokens)-1 { + // Final device need not be a bridge + break + } - busNum := len(files) - if busNum != 1 { - return "", fmt.Errorf("Expected an entry for bus in %s, got %d entries instead", bridgeBusPath, busNum) - } + // Find out the bus exposed by bridge + bridgeBusPath := filepath.Join(sysfsDir, rootBusPath, relPath, "pci_bus") - bus := files[0].Name() + files, err := ioutil.ReadDir(bridgeBusPath) + if err != nil { + return "", fmt.Errorf("Error reading %s : %s", bridgeBusPath, err) + } - // Device address is based on the bus of the bridge to which it is attached. - // We do not pass devices as multifunction, hence the trailing 0 in the address. - pciDeviceAddr := fmt.Sprintf("%s:%s.0", bus, deviceID) + if len(files) != 1 { + return "", fmt.Errorf("Expected exactly one PCI bus in %s, got %d instead", bridgeBusPath, len(files)) + } - bridgeDevicePCIAddr := fmt.Sprintf("%s/%s", pciBridgeAddr, pciDeviceAddr) - agentLog.WithField("completePCIAddr", bridgeDevicePCIAddr).Info("Fetched PCI address for device") + bus = files[0].Name() + } - return bridgeDevicePCIAddr, nil + return relPath, nil } func getDeviceName(s *sandbox, devID string) (string, error) { @@ -181,13 +186,13 @@ func getDeviceName(s *sandbox, devID string) (string, error) { return filepath.Join(systemDevPath, devName), nil } -func getPCIDeviceNameImpl(s *sandbox, pciID string) (string, error) { - pciAddr, err := getDevicePCIAddress(pciID) +func getPCIDeviceNameImpl(s *sandbox, pciPath PciPath) (string, error) { + sysfsRelPath, err := pciPathToSysfs(pciPath) if err != nil { return "", err } - fieldLogger := agentLog.WithField("pciAddr", pciAddr) + fieldLogger := agentLog.WithField("sysfsRelPath", sysfsRelPath) // Rescan pci bus if we need to wait for a new pci device if err = rescanPciBus(); err != nil { @@ -195,7 +200,7 @@ func getPCIDeviceNameImpl(s *sandbox, pciID string) (string, error) { return "", err } - return getDeviceName(s, pciAddr) + return getDeviceName(s, sysfsRelPath) } // device.Id should be the predicted device name (vda, vdb, ...) @@ -223,14 +228,11 @@ func virtioBlkCCWDeviceHandler(ctx context.Context, device pb.Device, spec *pb.S return updateSpecDeviceList(device, spec, devIdx) } -// device.Id should be the PCI address in the format "bridgeAddr/deviceAddr". -// Here, bridgeAddr is the address at which the brige is attached on the root bus, -// while deviceAddr is the address at which the device is attached on the bridge. +// device.Id should be a PCI path (see type PciPath) func virtioBlkDeviceHandler(_ context.Context, device pb.Device, spec *pb.Spec, s *sandbox, devIdx devIndex) error { - // When "Id (PCIAddr)" is not set, we allow to use the predicted "VmPath" passed from kata-runtime + // When "Id" (PCI path) is not set, we allow to use the predicted "VmPath" passed from kata-runtime if device.Id != "" { - // Get the device node path based on the PCI device address - devPath, err := getPCIDeviceName(s, device.Id) + devPath, err := getPCIDeviceName(s, PciPath{device.Id}) if err != nil { return err } diff --git a/device_test.go b/device_test.go index e9d928b590..34f5622a04 100644 --- a/device_test.go +++ b/device_test.go @@ -51,7 +51,7 @@ func testVirtioBlkDeviceHandlerFailure(t *testing.T, device pb.Device, spec *pb. assert.NotNil(t, err, "blockDeviceHandler() should have failed") savedFunc := getPCIDeviceName - getPCIDeviceName = func(s *sandbox, pciID string) (string, error) { + getPCIDeviceName = func(s *sandbox, pciPath PciPath) (string, error) { return "foo", nil } @@ -92,47 +92,81 @@ func TestVirtioBlkDeviceHandlerEmptyLinuxDevicesSpecFailure(t *testing.T) { testVirtioBlkDeviceHandlerFailure(t, device, spec) } -func TestGetPCIAddress(t *testing.T) { +func TestPciPathToSysfs(t *testing.T) { testDir, err := ioutil.TempDir("", "kata-agent-tmp-") if err != nil { t.Fatal(t, err) } defer os.RemoveAll(testDir) - pciID := "02" - _, err = getDevicePCIAddress(pciID) - assert.NotNil(t, err) + // Set sysfsDir to test directory for unit tests. + sysfsDir = testDir + rootBus := filepath.Join(sysfsDir, rootBusPath) + err = os.MkdirAll(rootBus, mountPerm) + assert.NoError(t, err) - pciID = "02/03/04" - _, err = getDevicePCIAddress(pciID) - assert.NotNil(t, err) + sysRelPath, err := pciPathToSysfs(PciPath{"02"}) + assert.NoError(t, err) + assert.Equal(t, sysRelPath, "0000:00:02.0") - bridgeID := "02" - deviceID := "03" - pciBus := "0000:01" - expectedPCIAddress := "0000:00:02.0/0000:01:03.0" - pciID = fmt.Sprintf("%s/%s", bridgeID, deviceID) + _, err = pciPathToSysfs(PciPath{"02/03"}) + assert.Error(t, err) - // Set sysBusPrefix to test directory for unit tests. - sysBusPrefix = testDir - bridgeBusPath := fmt.Sprintf(pciBusPathFormat, sysBusPrefix, "0000:00:02.0") + _, err = pciPathToSysfs(PciPath{"02/03/04"}) + assert.Error(t, err) - _, err = getDevicePCIAddress(pciID) - assert.NotNil(t, err) + // Create mock sysfs files for the device at 0000:00:02.0 + bridge2Path := filepath.Join(rootBus, "0000:00:02.0") - err = os.MkdirAll(bridgeBusPath, mountPerm) - assert.Nil(t, err) + err = os.MkdirAll(bridge2Path, mountPerm) + assert.NoError(t, err) - _, err = getDevicePCIAddress(pciID) - assert.NotNil(t, err) + sysRelPath, err = pciPathToSysfs(PciPath{"02"}) + assert.NoError(t, err) + assert.Equal(t, sysRelPath, "0000:00:02.0") - err = os.MkdirAll(filepath.Join(bridgeBusPath, pciBus), mountPerm) - assert.Nil(t, err) + _, err = pciPathToSysfs(PciPath{"02/03"}) + assert.Error(t, err) - addr, err := getDevicePCIAddress(pciID) - assert.Nil(t, err) + _, err = pciPathToSysfs(PciPath{"02/03/04"}) + assert.Error(t, err) + + // Create mock sysfs files to indicate that 0000:00:02.0 is a bridge to bus 01 + bridge2Bus := "0000:01" + err = os.MkdirAll(filepath.Join(bridge2Path, "pci_bus", bridge2Bus), mountPerm) + assert.NoError(t, err) - assert.Equal(t, addr, expectedPCIAddress) + sysRelPath, err = pciPathToSysfs(PciPath{"02"}) + assert.NoError(t, err) + assert.Equal(t, sysRelPath, "0000:00:02.0") + + sysRelPath, err = pciPathToSysfs(PciPath{"02/03"}) + assert.NoError(t, err) + assert.Equal(t, sysRelPath, "0000:00:02.0/0000:01:03.0") + + _, err = pciPathToSysfs(PciPath{"02/03/04"}) + assert.Error(t, err) + + // Create mock sysfs files for a bridge at 0000:01:03.0 to bus 02 + bridge3Path := filepath.Join(bridge2Path, "0000:01:03.0") + bridge3Bus := "0000:02" + err = os.MkdirAll(filepath.Join(bridge3Path, "pci_bus", bridge3Bus), mountPerm) + assert.NoError(t, err) + + err = os.MkdirAll(bridge3Path, mountPerm) + assert.NoError(t, err) + + sysRelPath, err = pciPathToSysfs(PciPath{"02"}) + assert.NoError(t, err) + assert.Equal(t, sysRelPath, "0000:00:02.0") + + sysRelPath, err = pciPathToSysfs(PciPath{"02/03"}) + assert.NoError(t, err) + assert.Equal(t, sysRelPath, "0000:00:02.0/0000:01:03.0") + + sysRelPath, err = pciPathToSysfs(PciPath{"02/03/04"}) + assert.NoError(t, err) + assert.Equal(t, sysRelPath, "0000:00:02.0/0000:01:03.0/0000:02:04.0") } func TestScanSCSIBus(t *testing.T) { @@ -804,12 +838,12 @@ func TestGetPCIDeviceName(t *testing.T) { sysfsDir = testSysfsDir - savedFunc := getDevicePCIAddress + savedFunc := pciPathToSysfs defer func() { - getDevicePCIAddress = savedFunc + pciPathToSysfs = savedFunc }() - getDevicePCIAddress = func(pciID string) (string, error) { + pciPathToSysfs = func(pciPath PciPath) (string, error) { return "", nil } @@ -817,14 +851,14 @@ func TestGetPCIDeviceName(t *testing.T) { deviceWatchers: make(map[string](chan string)), } - _, err = getPCIDeviceNameImpl(&sb, "") + _, err = getPCIDeviceNameImpl(&sb, PciPath{""}) assert.Error(err) rescanDir := filepath.Dir(pciBusRescanFile) err = os.MkdirAll(rescanDir, testDirMode) assert.NoError(err) - _, err = getPCIDeviceNameImpl(&sb, "") + _, err = getPCIDeviceNameImpl(&sb, PciPath{""}) assert.Error(err) } diff --git a/mount.go b/mount.go index f0c3efe3f7..27455baadc 100644 --- a/mount.go +++ b/mount.go @@ -297,8 +297,8 @@ func virtioFSStorageHandler(_ context.Context, storage pb.Storage, s *sandbox) ( // virtioBlkStorageHandler handles the storage for blk driver. func virtioBlkStorageHandler(_ context.Context, storage pb.Storage, s *sandbox) (string, error) { - // If hot-plugged, get the device node path based on the PCI address else - // use the virt path provided in Storage Source + // If hot-plugged, get the device node path based on the PCI + // path else use the virt path provided in Storage Source if strings.HasPrefix(storage.Source, "/dev") { FileInfo, err := os.Stat(storage.Source) @@ -312,7 +312,7 @@ func virtioBlkStorageHandler(_ context.Context, storage pb.Storage, s *sandbox) } } else { - devPath, err := getPCIDeviceName(s, storage.Source) + devPath, err := getPCIDeviceName(s, PciPath{storage.Source}) if err != nil { return "", err } diff --git a/mount_test.go b/mount_test.go index 913098a9ec..da00a4654e 100644 --- a/mount_test.go +++ b/mount_test.go @@ -219,13 +219,13 @@ func TestVirtioBlkStorageHandlerSuccessful(t *testing.T) { bridgeID := "02" deviceID := "03" pciBus := "0000:01" - completePCIAddr := fmt.Sprintf("0000:00:%s.0/%s:%s.0", bridgeID, pciBus, deviceID) + sysRelPath := fmt.Sprintf("0000:00:%s.0/%s:%s.0", bridgeID, pciBus, deviceID) - pciID := fmt.Sprintf("%s/%s", bridgeID, deviceID) - - sysBusPrefix = testDir - bridgeBusPath := fmt.Sprintf(pciBusPathFormat, sysBusPrefix, "0000:00:02.0") + pciPath := fmt.Sprintf("%s/%s", bridgeID, deviceID) + // Set sysfsDir to test directory for unit tests. + sysfsDir = testDir + bridgeBusPath := filepath.Join(sysfsDir, rootBusPath, "0000:00:02.0", "pci_bus") err = os.MkdirAll(filepath.Join(bridgeBusPath, pciBus), mountPerm) assert.Nil(t, err) @@ -242,7 +242,7 @@ func TestVirtioBlkStorageHandlerSuccessful(t *testing.T) { defer os.RemoveAll(dirPath) storage := pb.Storage{ - Source: pciID, + Source: pciPath, MountPoint: filepath.Join(dirPath, "test-mount"), } defer syscall.Unmount(storage.MountPoint, 0) @@ -252,7 +252,7 @@ func TestVirtioBlkStorageHandlerSuccessful(t *testing.T) { } s.Lock() - s.sysToDevMap[completePCIAddr] = devPath + s.sysToDevMap[sysRelPath] = devPath s.Unlock() storage.Fstype = "bind" diff --git a/network.go b/network.go index 0a73152585..ef4019417f 100644 --- a/network.go +++ b/network.go @@ -232,14 +232,13 @@ func (s *sandbox) updateInterface(netHandle *netlink.Handle, iface *types.Interf fieldLogger := agentLog.WithFields(logrus.Fields{ "mac-address": iface.HwAddr, "interface-name": iface.Device, - "pci-address": iface.PciAddr, + "pci-path": iface.PciPath, }) - // If the PCI address of the network device is provided, wait/check for the device - // to be available first - if iface.PciAddr != "" { - // iface.PciAddr is in the format bridgeAddr/deviceAddr eg. 05/06 - _, err := getPCIDeviceName(s, iface.PciAddr) + // If the PCI path of the network device is provided, + // wait/check for the device to be available first + if iface.PciPath != "" { + _, err := getPCIDeviceName(s, PciPath{iface.PciPath}) if err != nil { return nil, err } diff --git a/pkg/types/types.pb.go b/pkg/types/types.pb.go index a7948049e4..1635e936ab 100644 --- a/pkg/types/types.pb.go +++ b/pkg/types/types.pb.go @@ -91,10 +91,9 @@ type Interface struct { IPAddresses []*IPAddress `protobuf:"bytes,3,rep,name=IPAddresses" json:"IPAddresses,omitempty"` Mtu uint64 `protobuf:"varint,4,opt,name=mtu,proto3" json:"mtu,omitempty"` HwAddr string `protobuf:"bytes,5,opt,name=hwAddr,proto3" json:"hwAddr,omitempty"` - // pciAddr is the PCI address in the format "bridgeAddr/deviceAddr". - // Here, bridgeAddr is the address at which the bridge is attached on the root bus, - // while deviceAddr is the address at which the network device is attached on the bridge. - PciAddr string `protobuf:"bytes,6,opt,name=pciAddr,proto3" json:"pciAddr,omitempty"` + // pciPath for the device (see type PciPath for format + // details) + PciPath string `protobuf:"bytes,6,opt,name=pciPath,proto3" json:"pciPath,omitempty"` // Type defines the type of interface described by this structure. // The expected values are the one that are defined by the netlink // library, regarding each type of link. Here is a non exhaustive @@ -143,9 +142,9 @@ func (m *Interface) GetHwAddr() string { return "" } -func (m *Interface) GetPciAddr() string { +func (m *Interface) GetPciPath() string { if m != nil { - return m.PciAddr + return m.PciPath } return "" } @@ -352,11 +351,11 @@ func (m *Interface) MarshalTo(dAtA []byte) (int, error) { i = encodeVarintTypes(dAtA, i, uint64(len(m.HwAddr))) i += copy(dAtA[i:], m.HwAddr) } - if len(m.PciAddr) > 0 { + if len(m.PciPath) > 0 { dAtA[i] = 0x32 i++ - i = encodeVarintTypes(dAtA, i, uint64(len(m.PciAddr))) - i += copy(dAtA[i:], m.PciAddr) + i = encodeVarintTypes(dAtA, i, uint64(len(m.PciPath))) + i += copy(dAtA[i:], m.PciPath) } if len(m.Type) > 0 { dAtA[i] = 0x3a @@ -519,7 +518,7 @@ func (m *Interface) Size() (n int) { if l > 0 { n += 1 + l + sovTypes(uint64(l)) } - l = len(m.PciAddr) + l = len(m.PciPath) if l > 0 { n += 1 + l + sovTypes(uint64(l)) } @@ -890,7 +889,7 @@ func (m *Interface) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PciAddr", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PciPath", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -915,7 +914,7 @@ func (m *Interface) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.PciAddr = string(dAtA[iNdEx:postIndex]) + m.PciPath = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 7: if wireType != 2 { @@ -1459,30 +1458,30 @@ func init() { proto.RegisterFile("pkg/types/types.proto", fileDescriptorTypes) } var fileDescriptorTypes = []byte{ // 404 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0x41, 0x8a, 0xdb, 0x30, - 0x14, 0x86, 0xab, 0x38, 0xf6, 0xc4, 0x2f, 0x9d, 0xd6, 0x88, 0x76, 0x10, 0x2d, 0x04, 0xe3, 0x4d, - 0x4d, 0x17, 0x53, 0x48, 0x4b, 0xf7, 0xd3, 0xc5, 0x40, 0x36, 0x25, 0xe8, 0x02, 0x45, 0xb1, 0x15, - 0x8f, 0x89, 0x1d, 0x1b, 0x4b, 0x89, 0x09, 0x3d, 0x4b, 0xef, 0xd3, 0x65, 0x8f, 0x10, 0x72, 0x92, - 0xa2, 0x27, 0x39, 0xb8, 0x65, 0x36, 0xf6, 0xfb, 0x9e, 0x24, 0xbf, 0xff, 0xff, 0x2d, 0x78, 0xdb, - 0xee, 0x8a, 0x4f, 0xfa, 0xd4, 0x4a, 0x65, 0x9f, 0xf7, 0x6d, 0xd7, 0xe8, 0x86, 0xfa, 0x08, 0xc9, - 0x06, 0xc2, 0xd5, 0xfa, 0x21, 0xcf, 0x3b, 0xa9, 0x14, 0xfd, 0x00, 0xc1, 0x56, 0xd4, 0x65, 0x75, - 0x62, 0x24, 0x26, 0xe9, 0xab, 0xe5, 0xeb, 0x7b, 0x7b, 0x62, 0xb5, 0x7e, 0xc4, 0x36, 0x77, 0xcb, - 0x94, 0xc1, 0x8d, 0xb0, 0x67, 0xd8, 0x24, 0x26, 0x69, 0xc8, 0x07, 0xa4, 0x14, 0xa6, 0xb5, 0x50, - 0x3b, 0xe6, 0x61, 0x1b, 0xeb, 0xe4, 0x4c, 0x20, 0x5c, 0xed, 0xb5, 0xec, 0xb6, 0x22, 0x93, 0xf4, - 0x0e, 0x82, 0x5c, 0x1e, 0xcb, 0x4c, 0xe2, 0x90, 0x90, 0x3b, 0x32, 0x27, 0xf7, 0xa2, 0x96, 0xee, - 0x83, 0x58, 0xd3, 0x25, 0xcc, 0xaf, 0xea, 0xa4, 0x62, 0x5e, 0xec, 0xa5, 0xf3, 0x65, 0x74, 0x55, - 0xe5, 0x56, 0xf8, 0x78, 0x13, 0x8d, 0xc0, 0xab, 0xf5, 0x81, 0x4d, 0x63, 0x92, 0x4e, 0xb9, 0x29, - 0xcd, 0xc4, 0xa7, 0xde, 0x6c, 0x60, 0xbe, 0x9d, 0x68, 0xc9, 0xb8, 0x68, 0xb3, 0x12, 0x17, 0x02, - 0xeb, 0xc2, 0xa1, 0xd1, 0x62, 0x66, 0xb0, 0x1b, 0xab, 0xc5, 0xd4, 0xf4, 0x3d, 0x84, 0x9d, 0xe8, - 0x7f, 0x6c, 0x2b, 0x51, 0x28, 0x36, 0x8b, 0x49, 0x7a, 0xcb, 0x67, 0x9d, 0xe8, 0x1f, 0x0d, 0x27, - 0x3f, 0xc1, 0xe7, 0xcd, 0x41, 0xa3, 0x8b, 0x5c, 0x2a, 0xed, 0xbc, 0x61, 0x6d, 0xe6, 0x14, 0x42, - 0xcb, 0x5e, 0x9c, 0x86, 0xb4, 0x1c, 0x8e, 0xb2, 0xf0, 0xfe, 0xc9, 0xe2, 0x0e, 0x02, 0xd5, 0x1c, - 0xba, 0x4c, 0xa2, 0x8d, 0x90, 0x3b, 0xa2, 0x6f, 0xc0, 0x57, 0x59, 0xd3, 0x4a, 0x34, 0x72, 0xcb, - 0x2d, 0x24, 0xbf, 0x08, 0xcc, 0x1f, 0xf8, 0xfa, 0xbb, 0x2c, 0x8b, 0xa7, 0x4d, 0xd3, 0x99, 0xd4, - 0x74, 0x73, 0x8d, 0x04, 0xa5, 0x3c, 0x9b, 0xda, 0x68, 0xd3, 0x48, 0xc9, 0xe4, 0x7f, 0x25, 0x55, - 0x65, 0x7e, 0xee, 0xa0, 0xd0, 0x12, 0x2a, 0xd1, 0x42, 0x5b, 0x81, 0x3e, 0xb7, 0x60, 0xba, 0x36, - 0x1f, 0xdf, 0x76, 0x11, 0x3e, 0xbe, 0x83, 0xd9, 0x70, 0x83, 0x68, 0x00, 0x93, 0xe3, 0x97, 0xe8, - 0x05, 0xbe, 0xbf, 0x46, 0xe4, 0xdb, 0xcb, 0xdf, 0x97, 0x05, 0xf9, 0x73, 0x59, 0x90, 0xf3, 0x65, - 0x41, 0x36, 0x01, 0xde, 0xcd, 0xcf, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x99, 0x41, 0x3b, 0x8d, + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0xcf, 0xca, 0x9b, 0x40, + 0x14, 0xc5, 0x3b, 0x31, 0xfa, 0xc5, 0x9b, 0xa6, 0x95, 0xa1, 0x0d, 0x43, 0x0b, 0x41, 0xdc, 0x54, + 0xba, 0x48, 0x21, 0x2d, 0xdd, 0xa7, 0x8b, 0x40, 0x36, 0x45, 0xe6, 0x05, 0xca, 0x44, 0x27, 0x46, + 0xa2, 0x51, 0x9c, 0x49, 0x24, 0xf4, 0x59, 0xfa, 0x3e, 0x5d, 0xf6, 0x11, 0x42, 0x9e, 0xa4, 0xcc, + 0x1f, 0x83, 0x2d, 0xdf, 0x46, 0xef, 0xef, 0xce, 0x8c, 0xf7, 0x9c, 0xe3, 0xc0, 0xdb, 0xe6, 0x98, + 0x7f, 0x92, 0xd7, 0x86, 0x0b, 0xf3, 0x5c, 0x36, 0x6d, 0x2d, 0x6b, 0xec, 0x6a, 0x88, 0x76, 0xe0, + 0x6f, 0x93, 0x75, 0x96, 0xb5, 0x5c, 0x08, 0xfc, 0x01, 0xbc, 0x3d, 0xab, 0x8a, 0xf2, 0x4a, 0x50, + 0x88, 0xe2, 0x57, 0xab, 0xd7, 0x4b, 0x73, 0x62, 0x9b, 0x6c, 0x74, 0x9b, 0xda, 0x65, 0x4c, 0xe0, + 0x89, 0x99, 0x33, 0x64, 0x14, 0xa2, 0xd8, 0xa7, 0x3d, 0x62, 0x0c, 0xe3, 0x8a, 0x89, 0x23, 0x71, + 0x74, 0x5b, 0xd7, 0xd1, 0x0d, 0x81, 0xbf, 0x3d, 0x49, 0xde, 0xee, 0x59, 0xca, 0xf1, 0x1c, 0xbc, + 0x8c, 0x5f, 0x8a, 0x94, 0xeb, 0x21, 0x3e, 0xb5, 0xa4, 0x4e, 0x9e, 0x58, 0xc5, 0xed, 0x07, 0x75, + 0x8d, 0x57, 0x30, 0x7d, 0xa8, 0xe3, 0x82, 0x38, 0xa1, 0x13, 0x4f, 0x57, 0xc1, 0x43, 0x95, 0x5d, + 0xa1, 0xc3, 0x4d, 0x38, 0x00, 0xa7, 0x92, 0x67, 0x32, 0x0e, 0x51, 0x3c, 0xa6, 0xaa, 0x54, 0x13, + 0x0f, 0x9d, 0xda, 0x40, 0x5c, 0x33, 0xd1, 0x90, 0x72, 0xd1, 0xa4, 0x45, 0xc2, 0xe4, 0x81, 0x78, + 0xc6, 0x85, 0x45, 0xa5, 0x45, 0xcd, 0x20, 0x4f, 0x46, 0x8b, 0xaa, 0xf1, 0x7b, 0xf0, 0x5b, 0xd6, + 0xfd, 0xd8, 0x97, 0x2c, 0x17, 0x64, 0x12, 0xa2, 0x78, 0x46, 0x27, 0x2d, 0xeb, 0x36, 0x8a, 0xa3, + 0x9f, 0xe0, 0xd2, 0xfa, 0x2c, 0xb5, 0x8b, 0x8c, 0x0b, 0x69, 0xbd, 0xe9, 0x5a, 0xcd, 0xc9, 0x99, + 0xe4, 0x1d, 0xbb, 0xf6, 0x69, 0x59, 0x1c, 0x64, 0xe1, 0xfc, 0x93, 0xc5, 0x1c, 0x3c, 0x51, 0x9f, + 0xdb, 0x94, 0x6b, 0x1b, 0x3e, 0xb5, 0x84, 0xdf, 0x80, 0x2b, 0xd2, 0xba, 0xe1, 0xda, 0xc8, 0x8c, + 0x1a, 0x88, 0x7e, 0x21, 0x98, 0xae, 0x69, 0xf2, 0x9d, 0x17, 0xf9, 0x61, 0x57, 0xb7, 0x2a, 0x35, + 0x59, 0x3f, 0x22, 0xd1, 0x52, 0x9e, 0x4d, 0x6d, 0xb0, 0x69, 0xa0, 0x64, 0xf4, 0xbf, 0x92, 0xb2, + 0x54, 0x3f, 0xb7, 0x57, 0x68, 0x48, 0x2b, 0x91, 0x4c, 0x1a, 0x81, 0x2e, 0x35, 0xa0, 0xba, 0x26, + 0x1f, 0xd7, 0x74, 0x35, 0x7c, 0x7c, 0x07, 0x93, 0xfe, 0x06, 0x61, 0x0f, 0x46, 0x97, 0x2f, 0xc1, + 0x0b, 0xfd, 0xfe, 0x1a, 0xa0, 0x6f, 0x2f, 0x7f, 0xdf, 0x17, 0xe8, 0xcf, 0x7d, 0x81, 0x6e, 0xf7, + 0x05, 0xda, 0x79, 0xfa, 0x6e, 0x7e, 0xfe, 0x1b, 0x00, 0x00, 0xff, 0xff, 0x88, 0xf1, 0xc1, 0x2b, 0xb4, 0x02, 0x00, 0x00, } diff --git a/pkg/types/types.proto b/pkg/types/types.proto index 5a1cf65576..50f86aa914 100644 --- a/pkg/types/types.proto +++ b/pkg/types/types.proto @@ -1,5 +1,5 @@ // -// Copyright 2018 Intel Corporation. +// Copyright (c) 2018 Intel Corporation. // // SPDX-License-Identifier: Apache-2.0 // @@ -26,10 +26,9 @@ message Interface { uint64 mtu = 4; string hwAddr = 5; - // pciAddr is the PCI address in the format "bridgeAddr/deviceAddr". - // Here, bridgeAddr is the address at which the bridge is attached on the root bus, - // while deviceAddr is the address at which the network device is attached on the bridge. - string pciAddr = 6; + // pciPath for the device (see type PciPath for format + // details) + string pciPath = 6; // Type defines the type of interface described by this structure. // The expected values are the one that are defined by the netlink diff --git a/protocols/grpc/agent.pb.go b/protocols/grpc/agent.pb.go index 775f313330..6f7b6cf4c1 100644 --- a/protocols/grpc/agent.pb.go +++ b/protocols/grpc/agent.pb.go @@ -110,10 +110,8 @@ import math "math" import types "github.com/kata-containers/agent/pkg/types" import google_protobuf2 "github.com/gogo/protobuf/types" -import ( - context "golang.org/x/net/context" - grpc1 "google.golang.org/grpc" -) +import context "golang.org/x/net/context" +import grpc1 "google.golang.org/grpc" import io "io" diff --git a/protocols/grpc/health.pb.go b/protocols/grpc/health.pb.go index 9dd54fbe32..2126ae3259 100644 --- a/protocols/grpc/health.pb.go +++ b/protocols/grpc/health.pb.go @@ -8,10 +8,8 @@ import fmt "fmt" import math "math" import _ "github.com/gogo/protobuf/gogoproto" -import ( - context "golang.org/x/net/context" - grpc1 "google.golang.org/grpc" -) +import context "golang.org/x/net/context" +import grpc1 "google.golang.org/grpc" import io "io" @@ -110,10 +108,7 @@ func init() { } func (this *CheckRequest) Equal(that interface{}) bool { if that == nil { - if this == nil { - return true - } - return false + return this == nil } that1, ok := that.(*CheckRequest) @@ -126,10 +121,7 @@ func (this *CheckRequest) Equal(that interface{}) bool { } } if that1 == nil { - if this == nil { - return true - } - return false + return this == nil } else if this == nil { return false } @@ -140,10 +132,7 @@ func (this *CheckRequest) Equal(that interface{}) bool { } func (this *HealthCheckResponse) Equal(that interface{}) bool { if that == nil { - if this == nil { - return true - } - return false + return this == nil } that1, ok := that.(*HealthCheckResponse) @@ -156,10 +145,7 @@ func (this *HealthCheckResponse) Equal(that interface{}) bool { } } if that1 == nil { - if this == nil { - return true - } - return false + return this == nil } else if this == nil { return false } @@ -170,10 +156,7 @@ func (this *HealthCheckResponse) Equal(that interface{}) bool { } func (this *VersionCheckResponse) Equal(that interface{}) bool { if that == nil { - if this == nil { - return true - } - return false + return this == nil } that1, ok := that.(*VersionCheckResponse) @@ -186,10 +169,7 @@ func (this *VersionCheckResponse) Equal(that interface{}) bool { } } if that1 == nil { - if this == nil { - return true - } - return false + return this == nil } else if this == nil { return false } diff --git a/protocols/grpc/healthpb_test.go b/protocols/grpc/healthpb_test.go index 16a23cddc2..ecbdacff5b 100644 --- a/protocols/grpc/healthpb_test.go +++ b/protocols/grpc/healthpb_test.go @@ -4,11 +4,10 @@ package grpc import testing "testing" -import math_rand "math/rand" +import rand "math/rand" import time "time" -import github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" -import github_com_gogo_protobuf_jsonpb "github.com/gogo/protobuf/jsonpb" import proto "github.com/gogo/protobuf/proto" +import jsonpb "github.com/gogo/protobuf/jsonpb" import fmt "fmt" import math "math" import _ "github.com/gogo/protobuf/gogoproto" @@ -20,14 +19,14 @@ var _ = math.Inf func TestCheckRequestProto(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedCheckRequest(popr, false) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &CheckRequest{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -45,13 +44,13 @@ func TestCheckRequestProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + _ = proto.Unmarshal(littlefuzz, msg) } } func TestCheckRequestMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedCheckRequest(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -63,7 +62,7 @@ func TestCheckRequestMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &CheckRequest{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -75,7 +74,7 @@ func TestCheckRequestMarshalTo(t *testing.T) { } func BenchmarkCheckRequestProtoMarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*CheckRequest, 10000) for i := 0; i < 10000; i++ { @@ -83,7 +82,7 @@ func BenchmarkCheckRequestProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + dAtA, err := proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -93,11 +92,11 @@ func BenchmarkCheckRequestProtoMarshal(b *testing.B) { } func BenchmarkCheckRequestProtoUnmarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedCheckRequest(popr, false)) + dAtA, err := proto.Marshal(NewPopulatedCheckRequest(popr, false)) if err != nil { panic(err) } @@ -107,7 +106,7 @@ func BenchmarkCheckRequestProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -116,14 +115,14 @@ func BenchmarkCheckRequestProtoUnmarshal(b *testing.B) { func TestHealthCheckResponseProto(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedHealthCheckResponse(popr, false) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &HealthCheckResponse{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -141,13 +140,13 @@ func TestHealthCheckResponseProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + _ = proto.Unmarshal(littlefuzz, msg) } } func TestHealthCheckResponseMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedHealthCheckResponse(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -159,7 +158,7 @@ func TestHealthCheckResponseMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &HealthCheckResponse{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -171,7 +170,7 @@ func TestHealthCheckResponseMarshalTo(t *testing.T) { } func BenchmarkHealthCheckResponseProtoMarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*HealthCheckResponse, 10000) for i := 0; i < 10000; i++ { @@ -179,7 +178,7 @@ func BenchmarkHealthCheckResponseProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + dAtA, err := proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -189,11 +188,11 @@ func BenchmarkHealthCheckResponseProtoMarshal(b *testing.B) { } func BenchmarkHealthCheckResponseProtoUnmarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedHealthCheckResponse(popr, false)) + dAtA, err := proto.Marshal(NewPopulatedHealthCheckResponse(popr, false)) if err != nil { panic(err) } @@ -203,7 +202,7 @@ func BenchmarkHealthCheckResponseProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -212,14 +211,14 @@ func BenchmarkHealthCheckResponseProtoUnmarshal(b *testing.B) { func TestVersionCheckResponseProto(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedVersionCheckResponse(popr, false) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &VersionCheckResponse{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -237,13 +236,13 @@ func TestVersionCheckResponseProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + _ = proto.Unmarshal(littlefuzz, msg) } } func TestVersionCheckResponseMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedVersionCheckResponse(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -255,7 +254,7 @@ func TestVersionCheckResponseMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &VersionCheckResponse{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -267,7 +266,7 @@ func TestVersionCheckResponseMarshalTo(t *testing.T) { } func BenchmarkVersionCheckResponseProtoMarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*VersionCheckResponse, 10000) for i := 0; i < 10000; i++ { @@ -275,7 +274,7 @@ func BenchmarkVersionCheckResponseProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + dAtA, err := proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -285,11 +284,11 @@ func BenchmarkVersionCheckResponseProtoMarshal(b *testing.B) { } func BenchmarkVersionCheckResponseProtoUnmarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedVersionCheckResponse(popr, false)) + dAtA, err := proto.Marshal(NewPopulatedVersionCheckResponse(popr, false)) if err != nil { panic(err) } @@ -299,7 +298,7 @@ func BenchmarkVersionCheckResponseProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -308,15 +307,15 @@ func BenchmarkVersionCheckResponseProtoUnmarshal(b *testing.B) { func TestCheckRequestJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedCheckRequest(popr, true) - marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + marshaler := jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &CheckRequest{} - err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + err = jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -326,15 +325,15 @@ func TestCheckRequestJSON(t *testing.T) { } func TestHealthCheckResponseJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedHealthCheckResponse(popr, true) - marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + marshaler := jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &HealthCheckResponse{} - err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + err = jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -344,15 +343,15 @@ func TestHealthCheckResponseJSON(t *testing.T) { } func TestVersionCheckResponseJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedVersionCheckResponse(popr, true) - marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + marshaler := jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &VersionCheckResponse{} - err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + err = jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -362,11 +361,11 @@ func TestVersionCheckResponseJSON(t *testing.T) { } func TestCheckRequestProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedCheckRequest(popr, true) - dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + dAtA := proto.MarshalTextString(p) msg := &CheckRequest{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -376,11 +375,11 @@ func TestCheckRequestProtoText(t *testing.T) { func TestCheckRequestProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedCheckRequest(popr, true) - dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + dAtA := proto.CompactTextString(p) msg := &CheckRequest{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -390,11 +389,11 @@ func TestCheckRequestProtoCompactText(t *testing.T) { func TestHealthCheckResponseProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedHealthCheckResponse(popr, true) - dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + dAtA := proto.MarshalTextString(p) msg := &HealthCheckResponse{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -404,11 +403,11 @@ func TestHealthCheckResponseProtoText(t *testing.T) { func TestHealthCheckResponseProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedHealthCheckResponse(popr, true) - dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + dAtA := proto.CompactTextString(p) msg := &HealthCheckResponse{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -418,11 +417,11 @@ func TestHealthCheckResponseProtoCompactText(t *testing.T) { func TestVersionCheckResponseProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedVersionCheckResponse(popr, true) - dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + dAtA := proto.MarshalTextString(p) msg := &VersionCheckResponse{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -432,11 +431,11 @@ func TestVersionCheckResponseProtoText(t *testing.T) { func TestVersionCheckResponseProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedVersionCheckResponse(popr, true) - dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + dAtA := proto.CompactTextString(p) msg := &VersionCheckResponse{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -446,10 +445,10 @@ func TestVersionCheckResponseProtoCompactText(t *testing.T) { func TestCheckRequestSize(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedCheckRequest(popr, true) - size2 := github_com_gogo_protobuf_proto.Size(p) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + size2 := proto.Size(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -460,14 +459,14 @@ func TestCheckRequestSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := github_com_gogo_protobuf_proto.Size(p) + size3 := proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkCheckRequestSize(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*CheckRequest, 1000) for i := 0; i < 1000; i++ { @@ -482,10 +481,10 @@ func BenchmarkCheckRequestSize(b *testing.B) { func TestHealthCheckResponseSize(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedHealthCheckResponse(popr, true) - size2 := github_com_gogo_protobuf_proto.Size(p) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + size2 := proto.Size(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -496,14 +495,14 @@ func TestHealthCheckResponseSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := github_com_gogo_protobuf_proto.Size(p) + size3 := proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkHealthCheckResponseSize(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*HealthCheckResponse, 1000) for i := 0; i < 1000; i++ { @@ -518,10 +517,10 @@ func BenchmarkHealthCheckResponseSize(b *testing.B) { func TestVersionCheckResponseSize(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedVersionCheckResponse(popr, true) - size2 := github_com_gogo_protobuf_proto.Size(p) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + size2 := proto.Size(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -532,14 +531,14 @@ func TestVersionCheckResponseSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := github_com_gogo_protobuf_proto.Size(p) + size3 := proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkVersionCheckResponseSize(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*VersionCheckResponse, 1000) for i := 0; i < 1000; i++ { diff --git a/protocols/grpc/oci.pb.go b/protocols/grpc/oci.pb.go index cbfbab5870..5296a082f2 100644 --- a/protocols/grpc/oci.pb.go +++ b/protocols/grpc/oci.pb.go @@ -1499,10 +1499,7 @@ func init() { } func (this *Spec) Equal(that interface{}) bool { if that == nil { - if this == nil { - return true - } - return false + return this == nil } that1, ok := that.(*Spec) @@ -1515,10 +1512,7 @@ func (this *Spec) Equal(that interface{}) bool { } } if that1 == nil { - if this == nil { - return true - } - return false + return this == nil } else if this == nil { return false } @@ -1566,10 +1560,7 @@ func (this *Spec) Equal(that interface{}) bool { } func (this *Process) Equal(that interface{}) bool { if that == nil { - if this == nil { - return true - } - return false + return this == nil } that1, ok := that.(*Process) @@ -1582,10 +1573,7 @@ func (this *Process) Equal(that interface{}) bool { } } if that1 == nil { - if this == nil { - return true - } - return false + return this == nil } else if this == nil { return false } @@ -1644,10 +1632,7 @@ func (this *Process) Equal(that interface{}) bool { } func (this *Box) Equal(that interface{}) bool { if that == nil { - if this == nil { - return true - } - return false + return this == nil } that1, ok := that.(*Box) @@ -1660,10 +1645,7 @@ func (this *Box) Equal(that interface{}) bool { } } if that1 == nil { - if this == nil { - return true - } - return false + return this == nil } else if this == nil { return false } @@ -1677,10 +1659,7 @@ func (this *Box) Equal(that interface{}) bool { } func (this *User) Equal(that interface{}) bool { if that == nil { - if this == nil { - return true - } - return false + return this == nil } that1, ok := that.(*User) @@ -1693,10 +1672,7 @@ func (this *User) Equal(that interface{}) bool { } } if that1 == nil { - if this == nil { - return true - } - return false + return this == nil } else if this == nil { return false } @@ -1721,10 +1697,7 @@ func (this *User) Equal(that interface{}) bool { } func (this *LinuxCapabilities) Equal(that interface{}) bool { if that == nil { - if this == nil { - return true - } - return false + return this == nil } that1, ok := that.(*LinuxCapabilities) @@ -1737,10 +1710,7 @@ func (this *LinuxCapabilities) Equal(that interface{}) bool { } } if that1 == nil { - if this == nil { - return true - } - return false + return this == nil } else if this == nil { return false } @@ -1788,10 +1758,7 @@ func (this *LinuxCapabilities) Equal(that interface{}) bool { } func (this *POSIXRlimit) Equal(that interface{}) bool { if that == nil { - if this == nil { - return true - } - return false + return this == nil } that1, ok := that.(*POSIXRlimit) @@ -1804,10 +1771,7 @@ func (this *POSIXRlimit) Equal(that interface{}) bool { } } if that1 == nil { - if this == nil { - return true - } - return false + return this == nil } else if this == nil { return false } @@ -1824,10 +1788,7 @@ func (this *POSIXRlimit) Equal(that interface{}) bool { } func (this *Mount) Equal(that interface{}) bool { if that == nil { - if this == nil { - return true - } - return false + return this == nil } that1, ok := that.(*Mount) @@ -1840,10 +1801,7 @@ func (this *Mount) Equal(that interface{}) bool { } } if that1 == nil { - if this == nil { - return true - } - return false + return this == nil } else if this == nil { return false } @@ -1868,10 +1826,7 @@ func (this *Mount) Equal(that interface{}) bool { } func (this *Root) Equal(that interface{}) bool { if that == nil { - if this == nil { - return true - } - return false + return this == nil } that1, ok := that.(*Root) @@ -1884,10 +1839,7 @@ func (this *Root) Equal(that interface{}) bool { } } if that1 == nil { - if this == nil { - return true - } - return false + return this == nil } else if this == nil { return false } @@ -1901,10 +1853,7 @@ func (this *Root) Equal(that interface{}) bool { } func (this *Hooks) Equal(that interface{}) bool { if that == nil { - if this == nil { - return true - } - return false + return this == nil } that1, ok := that.(*Hooks) @@ -1917,10 +1866,7 @@ func (this *Hooks) Equal(that interface{}) bool { } } if that1 == nil { - if this == nil { - return true - } - return false + return this == nil } else if this == nil { return false } @@ -1952,10 +1898,7 @@ func (this *Hooks) Equal(that interface{}) bool { } func (this *Hook) Equal(that interface{}) bool { if that == nil { - if this == nil { - return true - } - return false + return this == nil } that1, ok := that.(*Hook) @@ -1968,10 +1911,7 @@ func (this *Hook) Equal(that interface{}) bool { } } if that1 == nil { - if this == nil { - return true - } - return false + return this == nil } else if this == nil { return false } @@ -2001,10 +1941,7 @@ func (this *Hook) Equal(that interface{}) bool { } func (this *Linux) Equal(that interface{}) bool { if that == nil { - if this == nil { - return true - } - return false + return this == nil } that1, ok := that.(*Linux) @@ -2017,10 +1954,7 @@ func (this *Linux) Equal(that interface{}) bool { } } if that1 == nil { - if this == nil { - return true - } - return false + return this == nil } else if this == nil { return false } @@ -2102,10 +2036,7 @@ func (this *Linux) Equal(that interface{}) bool { } func (this *Windows) Equal(that interface{}) bool { if that == nil { - if this == nil { - return true - } - return false + return this == nil } that1, ok := that.(*Windows) @@ -2118,10 +2049,7 @@ func (this *Windows) Equal(that interface{}) bool { } } if that1 == nil { - if this == nil { - return true - } - return false + return this == nil } else if this == nil { return false } @@ -2132,10 +2060,7 @@ func (this *Windows) Equal(that interface{}) bool { } func (this *Solaris) Equal(that interface{}) bool { if that == nil { - if this == nil { - return true - } - return false + return this == nil } that1, ok := that.(*Solaris) @@ -2148,10 +2073,7 @@ func (this *Solaris) Equal(that interface{}) bool { } } if that1 == nil { - if this == nil { - return true - } - return false + return this == nil } else if this == nil { return false } @@ -2162,10 +2084,7 @@ func (this *Solaris) Equal(that interface{}) bool { } func (this *LinuxIDMapping) Equal(that interface{}) bool { if that == nil { - if this == nil { - return true - } - return false + return this == nil } that1, ok := that.(*LinuxIDMapping) @@ -2178,10 +2097,7 @@ func (this *LinuxIDMapping) Equal(that interface{}) bool { } } if that1 == nil { - if this == nil { - return true - } - return false + return this == nil } else if this == nil { return false } @@ -2198,10 +2114,7 @@ func (this *LinuxIDMapping) Equal(that interface{}) bool { } func (this *LinuxNamespace) Equal(that interface{}) bool { if that == nil { - if this == nil { - return true - } - return false + return this == nil } that1, ok := that.(*LinuxNamespace) @@ -2214,10 +2127,7 @@ func (this *LinuxNamespace) Equal(that interface{}) bool { } } if that1 == nil { - if this == nil { - return true - } - return false + return this == nil } else if this == nil { return false } @@ -2231,10 +2141,7 @@ func (this *LinuxNamespace) Equal(that interface{}) bool { } func (this *LinuxDevice) Equal(that interface{}) bool { if that == nil { - if this == nil { - return true - } - return false + return this == nil } that1, ok := that.(*LinuxDevice) @@ -2247,10 +2154,7 @@ func (this *LinuxDevice) Equal(that interface{}) bool { } } if that1 == nil { - if this == nil { - return true - } - return false + return this == nil } else if this == nil { return false } @@ -2279,10 +2183,7 @@ func (this *LinuxDevice) Equal(that interface{}) bool { } func (this *LinuxResources) Equal(that interface{}) bool { if that == nil { - if this == nil { - return true - } - return false + return this == nil } that1, ok := that.(*LinuxResources) @@ -2295,10 +2196,7 @@ func (this *LinuxResources) Equal(that interface{}) bool { } } if that1 == nil { - if this == nil { - return true - } - return false + return this == nil } else if this == nil { return false } @@ -2337,10 +2235,7 @@ func (this *LinuxResources) Equal(that interface{}) bool { } func (this *LinuxMemory) Equal(that interface{}) bool { if that == nil { - if this == nil { - return true - } - return false + return this == nil } that1, ok := that.(*LinuxMemory) @@ -2353,10 +2248,7 @@ func (this *LinuxMemory) Equal(that interface{}) bool { } } if that1 == nil { - if this == nil { - return true - } - return false + return this == nil } else if this == nil { return false } @@ -2385,10 +2277,7 @@ func (this *LinuxMemory) Equal(that interface{}) bool { } func (this *LinuxCPU) Equal(that interface{}) bool { if that == nil { - if this == nil { - return true - } - return false + return this == nil } that1, ok := that.(*LinuxCPU) @@ -2401,10 +2290,7 @@ func (this *LinuxCPU) Equal(that interface{}) bool { } } if that1 == nil { - if this == nil { - return true - } - return false + return this == nil } else if this == nil { return false } @@ -2433,10 +2319,7 @@ func (this *LinuxCPU) Equal(that interface{}) bool { } func (this *LinuxWeightDevice) Equal(that interface{}) bool { if that == nil { - if this == nil { - return true - } - return false + return this == nil } that1, ok := that.(*LinuxWeightDevice) @@ -2449,10 +2332,7 @@ func (this *LinuxWeightDevice) Equal(that interface{}) bool { } } if that1 == nil { - if this == nil { - return true - } - return false + return this == nil } else if this == nil { return false } @@ -2472,10 +2352,7 @@ func (this *LinuxWeightDevice) Equal(that interface{}) bool { } func (this *LinuxThrottleDevice) Equal(that interface{}) bool { if that == nil { - if this == nil { - return true - } - return false + return this == nil } that1, ok := that.(*LinuxThrottleDevice) @@ -2488,10 +2365,7 @@ func (this *LinuxThrottleDevice) Equal(that interface{}) bool { } } if that1 == nil { - if this == nil { - return true - } - return false + return this == nil } else if this == nil { return false } @@ -2508,10 +2382,7 @@ func (this *LinuxThrottleDevice) Equal(that interface{}) bool { } func (this *LinuxBlockIO) Equal(that interface{}) bool { if that == nil { - if this == nil { - return true - } - return false + return this == nil } that1, ok := that.(*LinuxBlockIO) @@ -2524,10 +2395,7 @@ func (this *LinuxBlockIO) Equal(that interface{}) bool { } } if that1 == nil { - if this == nil { - return true - } - return false + return this == nil } else if this == nil { return false } @@ -2581,10 +2449,7 @@ func (this *LinuxBlockIO) Equal(that interface{}) bool { } func (this *LinuxPids) Equal(that interface{}) bool { if that == nil { - if this == nil { - return true - } - return false + return this == nil } that1, ok := that.(*LinuxPids) @@ -2597,10 +2462,7 @@ func (this *LinuxPids) Equal(that interface{}) bool { } } if that1 == nil { - if this == nil { - return true - } - return false + return this == nil } else if this == nil { return false } @@ -2611,10 +2473,7 @@ func (this *LinuxPids) Equal(that interface{}) bool { } func (this *LinuxDeviceCgroup) Equal(that interface{}) bool { if that == nil { - if this == nil { - return true - } - return false + return this == nil } that1, ok := that.(*LinuxDeviceCgroup) @@ -2627,10 +2486,7 @@ func (this *LinuxDeviceCgroup) Equal(that interface{}) bool { } } if that1 == nil { - if this == nil { - return true - } - return false + return this == nil } else if this == nil { return false } @@ -2653,10 +2509,7 @@ func (this *LinuxDeviceCgroup) Equal(that interface{}) bool { } func (this *LinuxNetwork) Equal(that interface{}) bool { if that == nil { - if this == nil { - return true - } - return false + return this == nil } that1, ok := that.(*LinuxNetwork) @@ -2669,10 +2522,7 @@ func (this *LinuxNetwork) Equal(that interface{}) bool { } } if that1 == nil { - if this == nil { - return true - } - return false + return this == nil } else if this == nil { return false } @@ -2691,10 +2541,7 @@ func (this *LinuxNetwork) Equal(that interface{}) bool { } func (this *LinuxHugepageLimit) Equal(that interface{}) bool { if that == nil { - if this == nil { - return true - } - return false + return this == nil } that1, ok := that.(*LinuxHugepageLimit) @@ -2707,10 +2554,7 @@ func (this *LinuxHugepageLimit) Equal(that interface{}) bool { } } if that1 == nil { - if this == nil { - return true - } - return false + return this == nil } else if this == nil { return false } @@ -2724,10 +2568,7 @@ func (this *LinuxHugepageLimit) Equal(that interface{}) bool { } func (this *LinuxInterfacePriority) Equal(that interface{}) bool { if that == nil { - if this == nil { - return true - } - return false + return this == nil } that1, ok := that.(*LinuxInterfacePriority) @@ -2740,10 +2581,7 @@ func (this *LinuxInterfacePriority) Equal(that interface{}) bool { } } if that1 == nil { - if this == nil { - return true - } - return false + return this == nil } else if this == nil { return false } @@ -2757,10 +2595,7 @@ func (this *LinuxInterfacePriority) Equal(that interface{}) bool { } func (this *LinuxSeccomp) Equal(that interface{}) bool { if that == nil { - if this == nil { - return true - } - return false + return this == nil } that1, ok := that.(*LinuxSeccomp) @@ -2773,10 +2608,7 @@ func (this *LinuxSeccomp) Equal(that interface{}) bool { } } if that1 == nil { - if this == nil { - return true - } - return false + return this == nil } else if this == nil { return false } @@ -2803,10 +2635,7 @@ func (this *LinuxSeccomp) Equal(that interface{}) bool { } func (this *LinuxSeccompArg) Equal(that interface{}) bool { if that == nil { - if this == nil { - return true - } - return false + return this == nil } that1, ok := that.(*LinuxSeccompArg) @@ -2819,10 +2648,7 @@ func (this *LinuxSeccompArg) Equal(that interface{}) bool { } } if that1 == nil { - if this == nil { - return true - } - return false + return this == nil } else if this == nil { return false } @@ -2842,10 +2668,7 @@ func (this *LinuxSeccompArg) Equal(that interface{}) bool { } func (this *LinuxSyscall) Equal(that interface{}) bool { if that == nil { - if this == nil { - return true - } - return false + return this == nil } that1, ok := that.(*LinuxSyscall) @@ -2858,10 +2681,7 @@ func (this *LinuxSyscall) Equal(that interface{}) bool { } } if that1 == nil { - if this == nil { - return true - } - return false + return this == nil } else if this == nil { return false } @@ -2888,10 +2708,7 @@ func (this *LinuxSyscall) Equal(that interface{}) bool { } func (this *LinuxIntelRdt) Equal(that interface{}) bool { if that == nil { - if this == nil { - return true - } - return false + return this == nil } that1, ok := that.(*LinuxIntelRdt) @@ -2904,10 +2721,7 @@ func (this *LinuxIntelRdt) Equal(that interface{}) bool { } } if that1 == nil { - if this == nil { - return true - } - return false + return this == nil } else if this == nil { return false } diff --git a/protocols/grpc/ocipb_test.go b/protocols/grpc/ocipb_test.go index e6538df364..b9649d07b4 100644 --- a/protocols/grpc/ocipb_test.go +++ b/protocols/grpc/ocipb_test.go @@ -4,11 +4,10 @@ package grpc import testing "testing" -import math_rand "math/rand" +import rand "math/rand" import time "time" -import github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" -import github_com_gogo_protobuf_jsonpb "github.com/gogo/protobuf/jsonpb" import proto "github.com/gogo/protobuf/proto" +import jsonpb "github.com/gogo/protobuf/jsonpb" import fmt "fmt" import math "math" import _ "github.com/gogo/protobuf/gogoproto" @@ -21,14 +20,14 @@ var _ = math.Inf func TestSpecProto(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedSpec(popr, false) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Spec{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -46,13 +45,13 @@ func TestSpecProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + _ = proto.Unmarshal(littlefuzz, msg) } } func TestSpecMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedSpec(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -64,7 +63,7 @@ func TestSpecMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Spec{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -76,7 +75,7 @@ func TestSpecMarshalTo(t *testing.T) { } func BenchmarkSpecProtoMarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*Spec, 10000) for i := 0; i < 10000; i++ { @@ -84,7 +83,7 @@ func BenchmarkSpecProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + dAtA, err := proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -94,11 +93,11 @@ func BenchmarkSpecProtoMarshal(b *testing.B) { } func BenchmarkSpecProtoUnmarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedSpec(popr, false)) + dAtA, err := proto.Marshal(NewPopulatedSpec(popr, false)) if err != nil { panic(err) } @@ -108,7 +107,7 @@ func BenchmarkSpecProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -117,14 +116,14 @@ func BenchmarkSpecProtoUnmarshal(b *testing.B) { func TestProcessProto(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedProcess(popr, false) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Process{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -142,13 +141,13 @@ func TestProcessProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + _ = proto.Unmarshal(littlefuzz, msg) } } func TestProcessMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedProcess(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -160,7 +159,7 @@ func TestProcessMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Process{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -172,7 +171,7 @@ func TestProcessMarshalTo(t *testing.T) { } func BenchmarkProcessProtoMarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*Process, 10000) for i := 0; i < 10000; i++ { @@ -180,7 +179,7 @@ func BenchmarkProcessProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + dAtA, err := proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -190,11 +189,11 @@ func BenchmarkProcessProtoMarshal(b *testing.B) { } func BenchmarkProcessProtoUnmarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedProcess(popr, false)) + dAtA, err := proto.Marshal(NewPopulatedProcess(popr, false)) if err != nil { panic(err) } @@ -204,7 +203,7 @@ func BenchmarkProcessProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -213,14 +212,14 @@ func BenchmarkProcessProtoUnmarshal(b *testing.B) { func TestBoxProto(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedBox(popr, false) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Box{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -238,13 +237,13 @@ func TestBoxProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + _ = proto.Unmarshal(littlefuzz, msg) } } func TestBoxMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedBox(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -256,7 +255,7 @@ func TestBoxMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Box{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -268,7 +267,7 @@ func TestBoxMarshalTo(t *testing.T) { } func BenchmarkBoxProtoMarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*Box, 10000) for i := 0; i < 10000; i++ { @@ -276,7 +275,7 @@ func BenchmarkBoxProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + dAtA, err := proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -286,11 +285,11 @@ func BenchmarkBoxProtoMarshal(b *testing.B) { } func BenchmarkBoxProtoUnmarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedBox(popr, false)) + dAtA, err := proto.Marshal(NewPopulatedBox(popr, false)) if err != nil { panic(err) } @@ -300,7 +299,7 @@ func BenchmarkBoxProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -309,14 +308,14 @@ func BenchmarkBoxProtoUnmarshal(b *testing.B) { func TestUserProto(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedUser(popr, false) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &User{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -334,13 +333,13 @@ func TestUserProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + _ = proto.Unmarshal(littlefuzz, msg) } } func TestUserMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedUser(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -352,7 +351,7 @@ func TestUserMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &User{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -364,7 +363,7 @@ func TestUserMarshalTo(t *testing.T) { } func BenchmarkUserProtoMarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*User, 10000) for i := 0; i < 10000; i++ { @@ -372,7 +371,7 @@ func BenchmarkUserProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + dAtA, err := proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -382,11 +381,11 @@ func BenchmarkUserProtoMarshal(b *testing.B) { } func BenchmarkUserProtoUnmarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedUser(popr, false)) + dAtA, err := proto.Marshal(NewPopulatedUser(popr, false)) if err != nil { panic(err) } @@ -396,7 +395,7 @@ func BenchmarkUserProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -405,14 +404,14 @@ func BenchmarkUserProtoUnmarshal(b *testing.B) { func TestLinuxCapabilitiesProto(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxCapabilities(popr, false) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxCapabilities{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -430,13 +429,13 @@ func TestLinuxCapabilitiesProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + _ = proto.Unmarshal(littlefuzz, msg) } } func TestLinuxCapabilitiesMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxCapabilities(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -448,7 +447,7 @@ func TestLinuxCapabilitiesMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxCapabilities{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -460,7 +459,7 @@ func TestLinuxCapabilitiesMarshalTo(t *testing.T) { } func BenchmarkLinuxCapabilitiesProtoMarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*LinuxCapabilities, 10000) for i := 0; i < 10000; i++ { @@ -468,7 +467,7 @@ func BenchmarkLinuxCapabilitiesProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + dAtA, err := proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -478,11 +477,11 @@ func BenchmarkLinuxCapabilitiesProtoMarshal(b *testing.B) { } func BenchmarkLinuxCapabilitiesProtoUnmarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxCapabilities(popr, false)) + dAtA, err := proto.Marshal(NewPopulatedLinuxCapabilities(popr, false)) if err != nil { panic(err) } @@ -492,7 +491,7 @@ func BenchmarkLinuxCapabilitiesProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -501,14 +500,14 @@ func BenchmarkLinuxCapabilitiesProtoUnmarshal(b *testing.B) { func TestPOSIXRlimitProto(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedPOSIXRlimit(popr, false) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &POSIXRlimit{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -526,13 +525,13 @@ func TestPOSIXRlimitProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + _ = proto.Unmarshal(littlefuzz, msg) } } func TestPOSIXRlimitMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedPOSIXRlimit(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -544,7 +543,7 @@ func TestPOSIXRlimitMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &POSIXRlimit{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -556,7 +555,7 @@ func TestPOSIXRlimitMarshalTo(t *testing.T) { } func BenchmarkPOSIXRlimitProtoMarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*POSIXRlimit, 10000) for i := 0; i < 10000; i++ { @@ -564,7 +563,7 @@ func BenchmarkPOSIXRlimitProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + dAtA, err := proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -574,11 +573,11 @@ func BenchmarkPOSIXRlimitProtoMarshal(b *testing.B) { } func BenchmarkPOSIXRlimitProtoUnmarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedPOSIXRlimit(popr, false)) + dAtA, err := proto.Marshal(NewPopulatedPOSIXRlimit(popr, false)) if err != nil { panic(err) } @@ -588,7 +587,7 @@ func BenchmarkPOSIXRlimitProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -597,14 +596,14 @@ func BenchmarkPOSIXRlimitProtoUnmarshal(b *testing.B) { func TestMountProto(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedMount(popr, false) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Mount{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -622,13 +621,13 @@ func TestMountProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + _ = proto.Unmarshal(littlefuzz, msg) } } func TestMountMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedMount(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -640,7 +639,7 @@ func TestMountMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Mount{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -652,7 +651,7 @@ func TestMountMarshalTo(t *testing.T) { } func BenchmarkMountProtoMarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*Mount, 10000) for i := 0; i < 10000; i++ { @@ -660,7 +659,7 @@ func BenchmarkMountProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + dAtA, err := proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -670,11 +669,11 @@ func BenchmarkMountProtoMarshal(b *testing.B) { } func BenchmarkMountProtoUnmarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedMount(popr, false)) + dAtA, err := proto.Marshal(NewPopulatedMount(popr, false)) if err != nil { panic(err) } @@ -684,7 +683,7 @@ func BenchmarkMountProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -693,14 +692,14 @@ func BenchmarkMountProtoUnmarshal(b *testing.B) { func TestRootProto(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedRoot(popr, false) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Root{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -718,13 +717,13 @@ func TestRootProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + _ = proto.Unmarshal(littlefuzz, msg) } } func TestRootMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedRoot(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -736,7 +735,7 @@ func TestRootMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Root{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -748,7 +747,7 @@ func TestRootMarshalTo(t *testing.T) { } func BenchmarkRootProtoMarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*Root, 10000) for i := 0; i < 10000; i++ { @@ -756,7 +755,7 @@ func BenchmarkRootProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + dAtA, err := proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -766,11 +765,11 @@ func BenchmarkRootProtoMarshal(b *testing.B) { } func BenchmarkRootProtoUnmarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedRoot(popr, false)) + dAtA, err := proto.Marshal(NewPopulatedRoot(popr, false)) if err != nil { panic(err) } @@ -780,7 +779,7 @@ func BenchmarkRootProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -789,14 +788,14 @@ func BenchmarkRootProtoUnmarshal(b *testing.B) { func TestHooksProto(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedHooks(popr, false) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Hooks{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -814,13 +813,13 @@ func TestHooksProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + _ = proto.Unmarshal(littlefuzz, msg) } } func TestHooksMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedHooks(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -832,7 +831,7 @@ func TestHooksMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Hooks{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -844,7 +843,7 @@ func TestHooksMarshalTo(t *testing.T) { } func BenchmarkHooksProtoMarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*Hooks, 10000) for i := 0; i < 10000; i++ { @@ -852,7 +851,7 @@ func BenchmarkHooksProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + dAtA, err := proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -862,11 +861,11 @@ func BenchmarkHooksProtoMarshal(b *testing.B) { } func BenchmarkHooksProtoUnmarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedHooks(popr, false)) + dAtA, err := proto.Marshal(NewPopulatedHooks(popr, false)) if err != nil { panic(err) } @@ -876,7 +875,7 @@ func BenchmarkHooksProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -885,14 +884,14 @@ func BenchmarkHooksProtoUnmarshal(b *testing.B) { func TestHookProto(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedHook(popr, false) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Hook{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -910,13 +909,13 @@ func TestHookProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + _ = proto.Unmarshal(littlefuzz, msg) } } func TestHookMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedHook(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -928,7 +927,7 @@ func TestHookMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Hook{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -940,7 +939,7 @@ func TestHookMarshalTo(t *testing.T) { } func BenchmarkHookProtoMarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*Hook, 10000) for i := 0; i < 10000; i++ { @@ -948,7 +947,7 @@ func BenchmarkHookProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + dAtA, err := proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -958,11 +957,11 @@ func BenchmarkHookProtoMarshal(b *testing.B) { } func BenchmarkHookProtoUnmarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedHook(popr, false)) + dAtA, err := proto.Marshal(NewPopulatedHook(popr, false)) if err != nil { panic(err) } @@ -972,7 +971,7 @@ func BenchmarkHookProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -981,14 +980,14 @@ func BenchmarkHookProtoUnmarshal(b *testing.B) { func TestLinuxProto(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinux(popr, false) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Linux{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -1006,13 +1005,13 @@ func TestLinuxProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + _ = proto.Unmarshal(littlefuzz, msg) } } func TestLinuxMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinux(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -1024,7 +1023,7 @@ func TestLinuxMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Linux{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -1036,7 +1035,7 @@ func TestLinuxMarshalTo(t *testing.T) { } func BenchmarkLinuxProtoMarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*Linux, 10000) for i := 0; i < 10000; i++ { @@ -1044,7 +1043,7 @@ func BenchmarkLinuxProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + dAtA, err := proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -1054,11 +1053,11 @@ func BenchmarkLinuxProtoMarshal(b *testing.B) { } func BenchmarkLinuxProtoUnmarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinux(popr, false)) + dAtA, err := proto.Marshal(NewPopulatedLinux(popr, false)) if err != nil { panic(err) } @@ -1068,7 +1067,7 @@ func BenchmarkLinuxProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -1077,14 +1076,14 @@ func BenchmarkLinuxProtoUnmarshal(b *testing.B) { func TestWindowsProto(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedWindows(popr, false) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Windows{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -1102,13 +1101,13 @@ func TestWindowsProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + _ = proto.Unmarshal(littlefuzz, msg) } } func TestWindowsMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedWindows(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -1120,7 +1119,7 @@ func TestWindowsMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Windows{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -1132,7 +1131,7 @@ func TestWindowsMarshalTo(t *testing.T) { } func BenchmarkWindowsProtoMarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*Windows, 10000) for i := 0; i < 10000; i++ { @@ -1140,7 +1139,7 @@ func BenchmarkWindowsProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + dAtA, err := proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -1150,11 +1149,11 @@ func BenchmarkWindowsProtoMarshal(b *testing.B) { } func BenchmarkWindowsProtoUnmarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedWindows(popr, false)) + dAtA, err := proto.Marshal(NewPopulatedWindows(popr, false)) if err != nil { panic(err) } @@ -1164,7 +1163,7 @@ func BenchmarkWindowsProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -1173,14 +1172,14 @@ func BenchmarkWindowsProtoUnmarshal(b *testing.B) { func TestSolarisProto(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedSolaris(popr, false) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Solaris{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -1198,13 +1197,13 @@ func TestSolarisProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + _ = proto.Unmarshal(littlefuzz, msg) } } func TestSolarisMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedSolaris(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -1216,7 +1215,7 @@ func TestSolarisMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Solaris{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -1228,7 +1227,7 @@ func TestSolarisMarshalTo(t *testing.T) { } func BenchmarkSolarisProtoMarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*Solaris, 10000) for i := 0; i < 10000; i++ { @@ -1236,7 +1235,7 @@ func BenchmarkSolarisProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + dAtA, err := proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -1246,11 +1245,11 @@ func BenchmarkSolarisProtoMarshal(b *testing.B) { } func BenchmarkSolarisProtoUnmarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedSolaris(popr, false)) + dAtA, err := proto.Marshal(NewPopulatedSolaris(popr, false)) if err != nil { panic(err) } @@ -1260,7 +1259,7 @@ func BenchmarkSolarisProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -1269,14 +1268,14 @@ func BenchmarkSolarisProtoUnmarshal(b *testing.B) { func TestLinuxIDMappingProto(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxIDMapping(popr, false) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxIDMapping{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -1294,13 +1293,13 @@ func TestLinuxIDMappingProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + _ = proto.Unmarshal(littlefuzz, msg) } } func TestLinuxIDMappingMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxIDMapping(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -1312,7 +1311,7 @@ func TestLinuxIDMappingMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxIDMapping{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -1324,7 +1323,7 @@ func TestLinuxIDMappingMarshalTo(t *testing.T) { } func BenchmarkLinuxIDMappingProtoMarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*LinuxIDMapping, 10000) for i := 0; i < 10000; i++ { @@ -1332,7 +1331,7 @@ func BenchmarkLinuxIDMappingProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + dAtA, err := proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -1342,11 +1341,11 @@ func BenchmarkLinuxIDMappingProtoMarshal(b *testing.B) { } func BenchmarkLinuxIDMappingProtoUnmarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxIDMapping(popr, false)) + dAtA, err := proto.Marshal(NewPopulatedLinuxIDMapping(popr, false)) if err != nil { panic(err) } @@ -1356,7 +1355,7 @@ func BenchmarkLinuxIDMappingProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -1365,14 +1364,14 @@ func BenchmarkLinuxIDMappingProtoUnmarshal(b *testing.B) { func TestLinuxNamespaceProto(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxNamespace(popr, false) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxNamespace{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -1390,13 +1389,13 @@ func TestLinuxNamespaceProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + _ = proto.Unmarshal(littlefuzz, msg) } } func TestLinuxNamespaceMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxNamespace(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -1408,7 +1407,7 @@ func TestLinuxNamespaceMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxNamespace{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -1420,7 +1419,7 @@ func TestLinuxNamespaceMarshalTo(t *testing.T) { } func BenchmarkLinuxNamespaceProtoMarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*LinuxNamespace, 10000) for i := 0; i < 10000; i++ { @@ -1428,7 +1427,7 @@ func BenchmarkLinuxNamespaceProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + dAtA, err := proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -1438,11 +1437,11 @@ func BenchmarkLinuxNamespaceProtoMarshal(b *testing.B) { } func BenchmarkLinuxNamespaceProtoUnmarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxNamespace(popr, false)) + dAtA, err := proto.Marshal(NewPopulatedLinuxNamespace(popr, false)) if err != nil { panic(err) } @@ -1452,7 +1451,7 @@ func BenchmarkLinuxNamespaceProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -1461,14 +1460,14 @@ func BenchmarkLinuxNamespaceProtoUnmarshal(b *testing.B) { func TestLinuxDeviceProto(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxDevice(popr, false) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxDevice{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -1486,13 +1485,13 @@ func TestLinuxDeviceProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + _ = proto.Unmarshal(littlefuzz, msg) } } func TestLinuxDeviceMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxDevice(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -1504,7 +1503,7 @@ func TestLinuxDeviceMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxDevice{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -1516,7 +1515,7 @@ func TestLinuxDeviceMarshalTo(t *testing.T) { } func BenchmarkLinuxDeviceProtoMarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*LinuxDevice, 10000) for i := 0; i < 10000; i++ { @@ -1524,7 +1523,7 @@ func BenchmarkLinuxDeviceProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + dAtA, err := proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -1534,11 +1533,11 @@ func BenchmarkLinuxDeviceProtoMarshal(b *testing.B) { } func BenchmarkLinuxDeviceProtoUnmarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxDevice(popr, false)) + dAtA, err := proto.Marshal(NewPopulatedLinuxDevice(popr, false)) if err != nil { panic(err) } @@ -1548,7 +1547,7 @@ func BenchmarkLinuxDeviceProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -1557,14 +1556,14 @@ func BenchmarkLinuxDeviceProtoUnmarshal(b *testing.B) { func TestLinuxResourcesProto(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxResources(popr, false) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxResources{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -1582,13 +1581,13 @@ func TestLinuxResourcesProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + _ = proto.Unmarshal(littlefuzz, msg) } } func TestLinuxResourcesMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxResources(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -1600,7 +1599,7 @@ func TestLinuxResourcesMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxResources{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -1612,7 +1611,7 @@ func TestLinuxResourcesMarshalTo(t *testing.T) { } func BenchmarkLinuxResourcesProtoMarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*LinuxResources, 10000) for i := 0; i < 10000; i++ { @@ -1620,7 +1619,7 @@ func BenchmarkLinuxResourcesProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + dAtA, err := proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -1630,11 +1629,11 @@ func BenchmarkLinuxResourcesProtoMarshal(b *testing.B) { } func BenchmarkLinuxResourcesProtoUnmarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxResources(popr, false)) + dAtA, err := proto.Marshal(NewPopulatedLinuxResources(popr, false)) if err != nil { panic(err) } @@ -1644,7 +1643,7 @@ func BenchmarkLinuxResourcesProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -1653,14 +1652,14 @@ func BenchmarkLinuxResourcesProtoUnmarshal(b *testing.B) { func TestLinuxMemoryProto(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxMemory(popr, false) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxMemory{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -1678,13 +1677,13 @@ func TestLinuxMemoryProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + _ = proto.Unmarshal(littlefuzz, msg) } } func TestLinuxMemoryMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxMemory(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -1696,7 +1695,7 @@ func TestLinuxMemoryMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxMemory{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -1708,7 +1707,7 @@ func TestLinuxMemoryMarshalTo(t *testing.T) { } func BenchmarkLinuxMemoryProtoMarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*LinuxMemory, 10000) for i := 0; i < 10000; i++ { @@ -1716,7 +1715,7 @@ func BenchmarkLinuxMemoryProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + dAtA, err := proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -1726,11 +1725,11 @@ func BenchmarkLinuxMemoryProtoMarshal(b *testing.B) { } func BenchmarkLinuxMemoryProtoUnmarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxMemory(popr, false)) + dAtA, err := proto.Marshal(NewPopulatedLinuxMemory(popr, false)) if err != nil { panic(err) } @@ -1740,7 +1739,7 @@ func BenchmarkLinuxMemoryProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -1749,14 +1748,14 @@ func BenchmarkLinuxMemoryProtoUnmarshal(b *testing.B) { func TestLinuxCPUProto(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxCPU(popr, false) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxCPU{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -1774,13 +1773,13 @@ func TestLinuxCPUProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + _ = proto.Unmarshal(littlefuzz, msg) } } func TestLinuxCPUMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxCPU(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -1792,7 +1791,7 @@ func TestLinuxCPUMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxCPU{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -1804,7 +1803,7 @@ func TestLinuxCPUMarshalTo(t *testing.T) { } func BenchmarkLinuxCPUProtoMarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*LinuxCPU, 10000) for i := 0; i < 10000; i++ { @@ -1812,7 +1811,7 @@ func BenchmarkLinuxCPUProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + dAtA, err := proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -1822,11 +1821,11 @@ func BenchmarkLinuxCPUProtoMarshal(b *testing.B) { } func BenchmarkLinuxCPUProtoUnmarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxCPU(popr, false)) + dAtA, err := proto.Marshal(NewPopulatedLinuxCPU(popr, false)) if err != nil { panic(err) } @@ -1836,7 +1835,7 @@ func BenchmarkLinuxCPUProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -1845,14 +1844,14 @@ func BenchmarkLinuxCPUProtoUnmarshal(b *testing.B) { func TestLinuxWeightDeviceProto(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxWeightDevice(popr, false) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxWeightDevice{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -1870,13 +1869,13 @@ func TestLinuxWeightDeviceProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + _ = proto.Unmarshal(littlefuzz, msg) } } func TestLinuxWeightDeviceMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxWeightDevice(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -1888,7 +1887,7 @@ func TestLinuxWeightDeviceMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxWeightDevice{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -1900,7 +1899,7 @@ func TestLinuxWeightDeviceMarshalTo(t *testing.T) { } func BenchmarkLinuxWeightDeviceProtoMarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*LinuxWeightDevice, 10000) for i := 0; i < 10000; i++ { @@ -1908,7 +1907,7 @@ func BenchmarkLinuxWeightDeviceProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + dAtA, err := proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -1918,11 +1917,11 @@ func BenchmarkLinuxWeightDeviceProtoMarshal(b *testing.B) { } func BenchmarkLinuxWeightDeviceProtoUnmarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxWeightDevice(popr, false)) + dAtA, err := proto.Marshal(NewPopulatedLinuxWeightDevice(popr, false)) if err != nil { panic(err) } @@ -1932,7 +1931,7 @@ func BenchmarkLinuxWeightDeviceProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -1941,14 +1940,14 @@ func BenchmarkLinuxWeightDeviceProtoUnmarshal(b *testing.B) { func TestLinuxThrottleDeviceProto(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxThrottleDevice(popr, false) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxThrottleDevice{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -1966,13 +1965,13 @@ func TestLinuxThrottleDeviceProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + _ = proto.Unmarshal(littlefuzz, msg) } } func TestLinuxThrottleDeviceMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxThrottleDevice(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -1984,7 +1983,7 @@ func TestLinuxThrottleDeviceMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxThrottleDevice{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -1996,7 +1995,7 @@ func TestLinuxThrottleDeviceMarshalTo(t *testing.T) { } func BenchmarkLinuxThrottleDeviceProtoMarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*LinuxThrottleDevice, 10000) for i := 0; i < 10000; i++ { @@ -2004,7 +2003,7 @@ func BenchmarkLinuxThrottleDeviceProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + dAtA, err := proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -2014,11 +2013,11 @@ func BenchmarkLinuxThrottleDeviceProtoMarshal(b *testing.B) { } func BenchmarkLinuxThrottleDeviceProtoUnmarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxThrottleDevice(popr, false)) + dAtA, err := proto.Marshal(NewPopulatedLinuxThrottleDevice(popr, false)) if err != nil { panic(err) } @@ -2028,7 +2027,7 @@ func BenchmarkLinuxThrottleDeviceProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -2037,14 +2036,14 @@ func BenchmarkLinuxThrottleDeviceProtoUnmarshal(b *testing.B) { func TestLinuxBlockIOProto(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxBlockIO(popr, false) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxBlockIO{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -2062,13 +2061,13 @@ func TestLinuxBlockIOProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + _ = proto.Unmarshal(littlefuzz, msg) } } func TestLinuxBlockIOMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxBlockIO(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -2080,7 +2079,7 @@ func TestLinuxBlockIOMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxBlockIO{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -2092,7 +2091,7 @@ func TestLinuxBlockIOMarshalTo(t *testing.T) { } func BenchmarkLinuxBlockIOProtoMarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*LinuxBlockIO, 10000) for i := 0; i < 10000; i++ { @@ -2100,7 +2099,7 @@ func BenchmarkLinuxBlockIOProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + dAtA, err := proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -2110,11 +2109,11 @@ func BenchmarkLinuxBlockIOProtoMarshal(b *testing.B) { } func BenchmarkLinuxBlockIOProtoUnmarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxBlockIO(popr, false)) + dAtA, err := proto.Marshal(NewPopulatedLinuxBlockIO(popr, false)) if err != nil { panic(err) } @@ -2124,7 +2123,7 @@ func BenchmarkLinuxBlockIOProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -2133,14 +2132,14 @@ func BenchmarkLinuxBlockIOProtoUnmarshal(b *testing.B) { func TestLinuxPidsProto(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxPids(popr, false) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxPids{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -2158,13 +2157,13 @@ func TestLinuxPidsProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + _ = proto.Unmarshal(littlefuzz, msg) } } func TestLinuxPidsMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxPids(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -2176,7 +2175,7 @@ func TestLinuxPidsMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxPids{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -2188,7 +2187,7 @@ func TestLinuxPidsMarshalTo(t *testing.T) { } func BenchmarkLinuxPidsProtoMarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*LinuxPids, 10000) for i := 0; i < 10000; i++ { @@ -2196,7 +2195,7 @@ func BenchmarkLinuxPidsProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + dAtA, err := proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -2206,11 +2205,11 @@ func BenchmarkLinuxPidsProtoMarshal(b *testing.B) { } func BenchmarkLinuxPidsProtoUnmarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxPids(popr, false)) + dAtA, err := proto.Marshal(NewPopulatedLinuxPids(popr, false)) if err != nil { panic(err) } @@ -2220,7 +2219,7 @@ func BenchmarkLinuxPidsProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -2229,14 +2228,14 @@ func BenchmarkLinuxPidsProtoUnmarshal(b *testing.B) { func TestLinuxDeviceCgroupProto(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxDeviceCgroup(popr, false) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxDeviceCgroup{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -2254,13 +2253,13 @@ func TestLinuxDeviceCgroupProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + _ = proto.Unmarshal(littlefuzz, msg) } } func TestLinuxDeviceCgroupMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxDeviceCgroup(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -2272,7 +2271,7 @@ func TestLinuxDeviceCgroupMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxDeviceCgroup{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -2284,7 +2283,7 @@ func TestLinuxDeviceCgroupMarshalTo(t *testing.T) { } func BenchmarkLinuxDeviceCgroupProtoMarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*LinuxDeviceCgroup, 10000) for i := 0; i < 10000; i++ { @@ -2292,7 +2291,7 @@ func BenchmarkLinuxDeviceCgroupProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + dAtA, err := proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -2302,11 +2301,11 @@ func BenchmarkLinuxDeviceCgroupProtoMarshal(b *testing.B) { } func BenchmarkLinuxDeviceCgroupProtoUnmarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxDeviceCgroup(popr, false)) + dAtA, err := proto.Marshal(NewPopulatedLinuxDeviceCgroup(popr, false)) if err != nil { panic(err) } @@ -2316,7 +2315,7 @@ func BenchmarkLinuxDeviceCgroupProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -2325,14 +2324,14 @@ func BenchmarkLinuxDeviceCgroupProtoUnmarshal(b *testing.B) { func TestLinuxNetworkProto(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxNetwork(popr, false) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxNetwork{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -2350,13 +2349,13 @@ func TestLinuxNetworkProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + _ = proto.Unmarshal(littlefuzz, msg) } } func TestLinuxNetworkMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxNetwork(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -2368,7 +2367,7 @@ func TestLinuxNetworkMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxNetwork{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -2380,7 +2379,7 @@ func TestLinuxNetworkMarshalTo(t *testing.T) { } func BenchmarkLinuxNetworkProtoMarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*LinuxNetwork, 10000) for i := 0; i < 10000; i++ { @@ -2388,7 +2387,7 @@ func BenchmarkLinuxNetworkProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + dAtA, err := proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -2398,11 +2397,11 @@ func BenchmarkLinuxNetworkProtoMarshal(b *testing.B) { } func BenchmarkLinuxNetworkProtoUnmarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxNetwork(popr, false)) + dAtA, err := proto.Marshal(NewPopulatedLinuxNetwork(popr, false)) if err != nil { panic(err) } @@ -2412,7 +2411,7 @@ func BenchmarkLinuxNetworkProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -2421,14 +2420,14 @@ func BenchmarkLinuxNetworkProtoUnmarshal(b *testing.B) { func TestLinuxHugepageLimitProto(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxHugepageLimit(popr, false) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxHugepageLimit{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -2446,13 +2445,13 @@ func TestLinuxHugepageLimitProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + _ = proto.Unmarshal(littlefuzz, msg) } } func TestLinuxHugepageLimitMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxHugepageLimit(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -2464,7 +2463,7 @@ func TestLinuxHugepageLimitMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxHugepageLimit{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -2476,7 +2475,7 @@ func TestLinuxHugepageLimitMarshalTo(t *testing.T) { } func BenchmarkLinuxHugepageLimitProtoMarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*LinuxHugepageLimit, 10000) for i := 0; i < 10000; i++ { @@ -2484,7 +2483,7 @@ func BenchmarkLinuxHugepageLimitProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + dAtA, err := proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -2494,11 +2493,11 @@ func BenchmarkLinuxHugepageLimitProtoMarshal(b *testing.B) { } func BenchmarkLinuxHugepageLimitProtoUnmarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxHugepageLimit(popr, false)) + dAtA, err := proto.Marshal(NewPopulatedLinuxHugepageLimit(popr, false)) if err != nil { panic(err) } @@ -2508,7 +2507,7 @@ func BenchmarkLinuxHugepageLimitProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -2517,14 +2516,14 @@ func BenchmarkLinuxHugepageLimitProtoUnmarshal(b *testing.B) { func TestLinuxInterfacePriorityProto(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxInterfacePriority(popr, false) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxInterfacePriority{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -2542,13 +2541,13 @@ func TestLinuxInterfacePriorityProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + _ = proto.Unmarshal(littlefuzz, msg) } } func TestLinuxInterfacePriorityMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxInterfacePriority(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -2560,7 +2559,7 @@ func TestLinuxInterfacePriorityMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxInterfacePriority{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -2572,7 +2571,7 @@ func TestLinuxInterfacePriorityMarshalTo(t *testing.T) { } func BenchmarkLinuxInterfacePriorityProtoMarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*LinuxInterfacePriority, 10000) for i := 0; i < 10000; i++ { @@ -2580,7 +2579,7 @@ func BenchmarkLinuxInterfacePriorityProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + dAtA, err := proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -2590,11 +2589,11 @@ func BenchmarkLinuxInterfacePriorityProtoMarshal(b *testing.B) { } func BenchmarkLinuxInterfacePriorityProtoUnmarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxInterfacePriority(popr, false)) + dAtA, err := proto.Marshal(NewPopulatedLinuxInterfacePriority(popr, false)) if err != nil { panic(err) } @@ -2604,7 +2603,7 @@ func BenchmarkLinuxInterfacePriorityProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -2613,14 +2612,14 @@ func BenchmarkLinuxInterfacePriorityProtoUnmarshal(b *testing.B) { func TestLinuxSeccompProto(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxSeccomp(popr, false) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxSeccomp{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -2638,13 +2637,13 @@ func TestLinuxSeccompProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + _ = proto.Unmarshal(littlefuzz, msg) } } func TestLinuxSeccompMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxSeccomp(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -2656,7 +2655,7 @@ func TestLinuxSeccompMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxSeccomp{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -2668,7 +2667,7 @@ func TestLinuxSeccompMarshalTo(t *testing.T) { } func BenchmarkLinuxSeccompProtoMarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*LinuxSeccomp, 10000) for i := 0; i < 10000; i++ { @@ -2676,7 +2675,7 @@ func BenchmarkLinuxSeccompProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + dAtA, err := proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -2686,11 +2685,11 @@ func BenchmarkLinuxSeccompProtoMarshal(b *testing.B) { } func BenchmarkLinuxSeccompProtoUnmarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxSeccomp(popr, false)) + dAtA, err := proto.Marshal(NewPopulatedLinuxSeccomp(popr, false)) if err != nil { panic(err) } @@ -2700,7 +2699,7 @@ func BenchmarkLinuxSeccompProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -2709,14 +2708,14 @@ func BenchmarkLinuxSeccompProtoUnmarshal(b *testing.B) { func TestLinuxSeccompArgProto(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxSeccompArg(popr, false) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxSeccompArg{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -2734,13 +2733,13 @@ func TestLinuxSeccompArgProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + _ = proto.Unmarshal(littlefuzz, msg) } } func TestLinuxSeccompArgMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxSeccompArg(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -2752,7 +2751,7 @@ func TestLinuxSeccompArgMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxSeccompArg{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -2764,7 +2763,7 @@ func TestLinuxSeccompArgMarshalTo(t *testing.T) { } func BenchmarkLinuxSeccompArgProtoMarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*LinuxSeccompArg, 10000) for i := 0; i < 10000; i++ { @@ -2772,7 +2771,7 @@ func BenchmarkLinuxSeccompArgProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + dAtA, err := proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -2782,11 +2781,11 @@ func BenchmarkLinuxSeccompArgProtoMarshal(b *testing.B) { } func BenchmarkLinuxSeccompArgProtoUnmarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxSeccompArg(popr, false)) + dAtA, err := proto.Marshal(NewPopulatedLinuxSeccompArg(popr, false)) if err != nil { panic(err) } @@ -2796,7 +2795,7 @@ func BenchmarkLinuxSeccompArgProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -2805,14 +2804,14 @@ func BenchmarkLinuxSeccompArgProtoUnmarshal(b *testing.B) { func TestLinuxSyscallProto(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxSyscall(popr, false) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxSyscall{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -2830,13 +2829,13 @@ func TestLinuxSyscallProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + _ = proto.Unmarshal(littlefuzz, msg) } } func TestLinuxSyscallMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxSyscall(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -2848,7 +2847,7 @@ func TestLinuxSyscallMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxSyscall{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -2860,7 +2859,7 @@ func TestLinuxSyscallMarshalTo(t *testing.T) { } func BenchmarkLinuxSyscallProtoMarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*LinuxSyscall, 10000) for i := 0; i < 10000; i++ { @@ -2868,7 +2867,7 @@ func BenchmarkLinuxSyscallProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + dAtA, err := proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -2878,11 +2877,11 @@ func BenchmarkLinuxSyscallProtoMarshal(b *testing.B) { } func BenchmarkLinuxSyscallProtoUnmarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxSyscall(popr, false)) + dAtA, err := proto.Marshal(NewPopulatedLinuxSyscall(popr, false)) if err != nil { panic(err) } @@ -2892,7 +2891,7 @@ func BenchmarkLinuxSyscallProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -2901,14 +2900,14 @@ func BenchmarkLinuxSyscallProtoUnmarshal(b *testing.B) { func TestLinuxIntelRdtProto(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxIntelRdt(popr, false) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxIntelRdt{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -2926,13 +2925,13 @@ func TestLinuxIntelRdtProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) + _ = proto.Unmarshal(littlefuzz, msg) } } func TestLinuxIntelRdtMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxIntelRdt(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -2944,7 +2943,7 @@ func TestLinuxIntelRdtMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxIntelRdt{} - if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { + if err := proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -2956,7 +2955,7 @@ func TestLinuxIntelRdtMarshalTo(t *testing.T) { } func BenchmarkLinuxIntelRdtProtoMarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*LinuxIntelRdt, 10000) for i := 0; i < 10000; i++ { @@ -2964,7 +2963,7 @@ func BenchmarkLinuxIntelRdtProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) + dAtA, err := proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -2974,11 +2973,11 @@ func BenchmarkLinuxIntelRdtProtoMarshal(b *testing.B) { } func BenchmarkLinuxIntelRdtProtoUnmarshal(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxIntelRdt(popr, false)) + dAtA, err := proto.Marshal(NewPopulatedLinuxIntelRdt(popr, false)) if err != nil { panic(err) } @@ -2988,7 +2987,7 @@ func BenchmarkLinuxIntelRdtProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -2997,15 +2996,15 @@ func BenchmarkLinuxIntelRdtProtoUnmarshal(b *testing.B) { func TestSpecJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedSpec(popr, true) - marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + marshaler := jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Spec{} - err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + err = jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3015,15 +3014,15 @@ func TestSpecJSON(t *testing.T) { } func TestProcessJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedProcess(popr, true) - marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + marshaler := jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Process{} - err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + err = jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3033,15 +3032,15 @@ func TestProcessJSON(t *testing.T) { } func TestBoxJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedBox(popr, true) - marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + marshaler := jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Box{} - err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + err = jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3051,15 +3050,15 @@ func TestBoxJSON(t *testing.T) { } func TestUserJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedUser(popr, true) - marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + marshaler := jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &User{} - err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + err = jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3069,15 +3068,15 @@ func TestUserJSON(t *testing.T) { } func TestLinuxCapabilitiesJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxCapabilities(popr, true) - marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + marshaler := jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxCapabilities{} - err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + err = jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3087,15 +3086,15 @@ func TestLinuxCapabilitiesJSON(t *testing.T) { } func TestPOSIXRlimitJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedPOSIXRlimit(popr, true) - marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + marshaler := jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &POSIXRlimit{} - err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + err = jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3105,15 +3104,15 @@ func TestPOSIXRlimitJSON(t *testing.T) { } func TestMountJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedMount(popr, true) - marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + marshaler := jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Mount{} - err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + err = jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3123,15 +3122,15 @@ func TestMountJSON(t *testing.T) { } func TestRootJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedRoot(popr, true) - marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + marshaler := jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Root{} - err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + err = jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3141,15 +3140,15 @@ func TestRootJSON(t *testing.T) { } func TestHooksJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedHooks(popr, true) - marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + marshaler := jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Hooks{} - err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + err = jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3159,15 +3158,15 @@ func TestHooksJSON(t *testing.T) { } func TestHookJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedHook(popr, true) - marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + marshaler := jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Hook{} - err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + err = jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3177,15 +3176,15 @@ func TestHookJSON(t *testing.T) { } func TestLinuxJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinux(popr, true) - marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + marshaler := jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Linux{} - err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + err = jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3195,15 +3194,15 @@ func TestLinuxJSON(t *testing.T) { } func TestWindowsJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedWindows(popr, true) - marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + marshaler := jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Windows{} - err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + err = jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3213,15 +3212,15 @@ func TestWindowsJSON(t *testing.T) { } func TestSolarisJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedSolaris(popr, true) - marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + marshaler := jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Solaris{} - err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + err = jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3231,15 +3230,15 @@ func TestSolarisJSON(t *testing.T) { } func TestLinuxIDMappingJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxIDMapping(popr, true) - marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + marshaler := jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxIDMapping{} - err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + err = jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3249,15 +3248,15 @@ func TestLinuxIDMappingJSON(t *testing.T) { } func TestLinuxNamespaceJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxNamespace(popr, true) - marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + marshaler := jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxNamespace{} - err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + err = jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3267,15 +3266,15 @@ func TestLinuxNamespaceJSON(t *testing.T) { } func TestLinuxDeviceJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxDevice(popr, true) - marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + marshaler := jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxDevice{} - err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + err = jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3285,15 +3284,15 @@ func TestLinuxDeviceJSON(t *testing.T) { } func TestLinuxResourcesJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxResources(popr, true) - marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + marshaler := jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxResources{} - err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + err = jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3303,15 +3302,15 @@ func TestLinuxResourcesJSON(t *testing.T) { } func TestLinuxMemoryJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxMemory(popr, true) - marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + marshaler := jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxMemory{} - err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + err = jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3321,15 +3320,15 @@ func TestLinuxMemoryJSON(t *testing.T) { } func TestLinuxCPUJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxCPU(popr, true) - marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + marshaler := jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxCPU{} - err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + err = jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3339,15 +3338,15 @@ func TestLinuxCPUJSON(t *testing.T) { } func TestLinuxWeightDeviceJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxWeightDevice(popr, true) - marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + marshaler := jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxWeightDevice{} - err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + err = jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3357,15 +3356,15 @@ func TestLinuxWeightDeviceJSON(t *testing.T) { } func TestLinuxThrottleDeviceJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxThrottleDevice(popr, true) - marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + marshaler := jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxThrottleDevice{} - err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + err = jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3375,15 +3374,15 @@ func TestLinuxThrottleDeviceJSON(t *testing.T) { } func TestLinuxBlockIOJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxBlockIO(popr, true) - marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + marshaler := jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxBlockIO{} - err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + err = jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3393,15 +3392,15 @@ func TestLinuxBlockIOJSON(t *testing.T) { } func TestLinuxPidsJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxPids(popr, true) - marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + marshaler := jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxPids{} - err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + err = jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3411,15 +3410,15 @@ func TestLinuxPidsJSON(t *testing.T) { } func TestLinuxDeviceCgroupJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxDeviceCgroup(popr, true) - marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + marshaler := jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxDeviceCgroup{} - err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + err = jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3429,15 +3428,15 @@ func TestLinuxDeviceCgroupJSON(t *testing.T) { } func TestLinuxNetworkJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxNetwork(popr, true) - marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + marshaler := jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxNetwork{} - err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + err = jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3447,15 +3446,15 @@ func TestLinuxNetworkJSON(t *testing.T) { } func TestLinuxHugepageLimitJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxHugepageLimit(popr, true) - marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + marshaler := jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxHugepageLimit{} - err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + err = jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3465,15 +3464,15 @@ func TestLinuxHugepageLimitJSON(t *testing.T) { } func TestLinuxInterfacePriorityJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxInterfacePriority(popr, true) - marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + marshaler := jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxInterfacePriority{} - err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + err = jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3483,15 +3482,15 @@ func TestLinuxInterfacePriorityJSON(t *testing.T) { } func TestLinuxSeccompJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxSeccomp(popr, true) - marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + marshaler := jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxSeccomp{} - err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + err = jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3501,15 +3500,15 @@ func TestLinuxSeccompJSON(t *testing.T) { } func TestLinuxSeccompArgJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxSeccompArg(popr, true) - marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + marshaler := jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxSeccompArg{} - err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + err = jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3519,15 +3518,15 @@ func TestLinuxSeccompArgJSON(t *testing.T) { } func TestLinuxSyscallJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxSyscall(popr, true) - marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + marshaler := jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxSyscall{} - err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + err = jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3537,15 +3536,15 @@ func TestLinuxSyscallJSON(t *testing.T) { } func TestLinuxIntelRdtJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxIntelRdt(popr, true) - marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} + marshaler := jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxIntelRdt{} - err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) + err = jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3555,11 +3554,11 @@ func TestLinuxIntelRdtJSON(t *testing.T) { } func TestSpecProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedSpec(popr, true) - dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + dAtA := proto.MarshalTextString(p) msg := &Spec{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3569,11 +3568,11 @@ func TestSpecProtoText(t *testing.T) { func TestSpecProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedSpec(popr, true) - dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + dAtA := proto.CompactTextString(p) msg := &Spec{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3583,11 +3582,11 @@ func TestSpecProtoCompactText(t *testing.T) { func TestProcessProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedProcess(popr, true) - dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + dAtA := proto.MarshalTextString(p) msg := &Process{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3597,11 +3596,11 @@ func TestProcessProtoText(t *testing.T) { func TestProcessProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedProcess(popr, true) - dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + dAtA := proto.CompactTextString(p) msg := &Process{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3611,11 +3610,11 @@ func TestProcessProtoCompactText(t *testing.T) { func TestBoxProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedBox(popr, true) - dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + dAtA := proto.MarshalTextString(p) msg := &Box{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3625,11 +3624,11 @@ func TestBoxProtoText(t *testing.T) { func TestBoxProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedBox(popr, true) - dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + dAtA := proto.CompactTextString(p) msg := &Box{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3639,11 +3638,11 @@ func TestBoxProtoCompactText(t *testing.T) { func TestUserProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedUser(popr, true) - dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + dAtA := proto.MarshalTextString(p) msg := &User{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3653,11 +3652,11 @@ func TestUserProtoText(t *testing.T) { func TestUserProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedUser(popr, true) - dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + dAtA := proto.CompactTextString(p) msg := &User{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3667,11 +3666,11 @@ func TestUserProtoCompactText(t *testing.T) { func TestLinuxCapabilitiesProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxCapabilities(popr, true) - dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + dAtA := proto.MarshalTextString(p) msg := &LinuxCapabilities{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3681,11 +3680,11 @@ func TestLinuxCapabilitiesProtoText(t *testing.T) { func TestLinuxCapabilitiesProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxCapabilities(popr, true) - dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + dAtA := proto.CompactTextString(p) msg := &LinuxCapabilities{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3695,11 +3694,11 @@ func TestLinuxCapabilitiesProtoCompactText(t *testing.T) { func TestPOSIXRlimitProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedPOSIXRlimit(popr, true) - dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + dAtA := proto.MarshalTextString(p) msg := &POSIXRlimit{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3709,11 +3708,11 @@ func TestPOSIXRlimitProtoText(t *testing.T) { func TestPOSIXRlimitProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedPOSIXRlimit(popr, true) - dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + dAtA := proto.CompactTextString(p) msg := &POSIXRlimit{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3723,11 +3722,11 @@ func TestPOSIXRlimitProtoCompactText(t *testing.T) { func TestMountProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedMount(popr, true) - dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + dAtA := proto.MarshalTextString(p) msg := &Mount{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3737,11 +3736,11 @@ func TestMountProtoText(t *testing.T) { func TestMountProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedMount(popr, true) - dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + dAtA := proto.CompactTextString(p) msg := &Mount{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3751,11 +3750,11 @@ func TestMountProtoCompactText(t *testing.T) { func TestRootProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedRoot(popr, true) - dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + dAtA := proto.MarshalTextString(p) msg := &Root{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3765,11 +3764,11 @@ func TestRootProtoText(t *testing.T) { func TestRootProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedRoot(popr, true) - dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + dAtA := proto.CompactTextString(p) msg := &Root{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3779,11 +3778,11 @@ func TestRootProtoCompactText(t *testing.T) { func TestHooksProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedHooks(popr, true) - dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + dAtA := proto.MarshalTextString(p) msg := &Hooks{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3793,11 +3792,11 @@ func TestHooksProtoText(t *testing.T) { func TestHooksProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedHooks(popr, true) - dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + dAtA := proto.CompactTextString(p) msg := &Hooks{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3807,11 +3806,11 @@ func TestHooksProtoCompactText(t *testing.T) { func TestHookProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedHook(popr, true) - dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + dAtA := proto.MarshalTextString(p) msg := &Hook{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3821,11 +3820,11 @@ func TestHookProtoText(t *testing.T) { func TestHookProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedHook(popr, true) - dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + dAtA := proto.CompactTextString(p) msg := &Hook{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3835,11 +3834,11 @@ func TestHookProtoCompactText(t *testing.T) { func TestLinuxProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinux(popr, true) - dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + dAtA := proto.MarshalTextString(p) msg := &Linux{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3849,11 +3848,11 @@ func TestLinuxProtoText(t *testing.T) { func TestLinuxProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinux(popr, true) - dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + dAtA := proto.CompactTextString(p) msg := &Linux{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3863,11 +3862,11 @@ func TestLinuxProtoCompactText(t *testing.T) { func TestWindowsProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedWindows(popr, true) - dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + dAtA := proto.MarshalTextString(p) msg := &Windows{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3877,11 +3876,11 @@ func TestWindowsProtoText(t *testing.T) { func TestWindowsProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedWindows(popr, true) - dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + dAtA := proto.CompactTextString(p) msg := &Windows{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3891,11 +3890,11 @@ func TestWindowsProtoCompactText(t *testing.T) { func TestSolarisProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedSolaris(popr, true) - dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + dAtA := proto.MarshalTextString(p) msg := &Solaris{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3905,11 +3904,11 @@ func TestSolarisProtoText(t *testing.T) { func TestSolarisProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedSolaris(popr, true) - dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + dAtA := proto.CompactTextString(p) msg := &Solaris{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3919,11 +3918,11 @@ func TestSolarisProtoCompactText(t *testing.T) { func TestLinuxIDMappingProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxIDMapping(popr, true) - dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + dAtA := proto.MarshalTextString(p) msg := &LinuxIDMapping{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3933,11 +3932,11 @@ func TestLinuxIDMappingProtoText(t *testing.T) { func TestLinuxIDMappingProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxIDMapping(popr, true) - dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + dAtA := proto.CompactTextString(p) msg := &LinuxIDMapping{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3947,11 +3946,11 @@ func TestLinuxIDMappingProtoCompactText(t *testing.T) { func TestLinuxNamespaceProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxNamespace(popr, true) - dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + dAtA := proto.MarshalTextString(p) msg := &LinuxNamespace{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3961,11 +3960,11 @@ func TestLinuxNamespaceProtoText(t *testing.T) { func TestLinuxNamespaceProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxNamespace(popr, true) - dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + dAtA := proto.CompactTextString(p) msg := &LinuxNamespace{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3975,11 +3974,11 @@ func TestLinuxNamespaceProtoCompactText(t *testing.T) { func TestLinuxDeviceProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxDevice(popr, true) - dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + dAtA := proto.MarshalTextString(p) msg := &LinuxDevice{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3989,11 +3988,11 @@ func TestLinuxDeviceProtoText(t *testing.T) { func TestLinuxDeviceProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxDevice(popr, true) - dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + dAtA := proto.CompactTextString(p) msg := &LinuxDevice{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4003,11 +4002,11 @@ func TestLinuxDeviceProtoCompactText(t *testing.T) { func TestLinuxResourcesProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxResources(popr, true) - dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + dAtA := proto.MarshalTextString(p) msg := &LinuxResources{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4017,11 +4016,11 @@ func TestLinuxResourcesProtoText(t *testing.T) { func TestLinuxResourcesProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxResources(popr, true) - dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + dAtA := proto.CompactTextString(p) msg := &LinuxResources{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4031,11 +4030,11 @@ func TestLinuxResourcesProtoCompactText(t *testing.T) { func TestLinuxMemoryProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxMemory(popr, true) - dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + dAtA := proto.MarshalTextString(p) msg := &LinuxMemory{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4045,11 +4044,11 @@ func TestLinuxMemoryProtoText(t *testing.T) { func TestLinuxMemoryProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxMemory(popr, true) - dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + dAtA := proto.CompactTextString(p) msg := &LinuxMemory{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4059,11 +4058,11 @@ func TestLinuxMemoryProtoCompactText(t *testing.T) { func TestLinuxCPUProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxCPU(popr, true) - dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + dAtA := proto.MarshalTextString(p) msg := &LinuxCPU{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4073,11 +4072,11 @@ func TestLinuxCPUProtoText(t *testing.T) { func TestLinuxCPUProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxCPU(popr, true) - dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + dAtA := proto.CompactTextString(p) msg := &LinuxCPU{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4087,11 +4086,11 @@ func TestLinuxCPUProtoCompactText(t *testing.T) { func TestLinuxWeightDeviceProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxWeightDevice(popr, true) - dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + dAtA := proto.MarshalTextString(p) msg := &LinuxWeightDevice{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4101,11 +4100,11 @@ func TestLinuxWeightDeviceProtoText(t *testing.T) { func TestLinuxWeightDeviceProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxWeightDevice(popr, true) - dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + dAtA := proto.CompactTextString(p) msg := &LinuxWeightDevice{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4115,11 +4114,11 @@ func TestLinuxWeightDeviceProtoCompactText(t *testing.T) { func TestLinuxThrottleDeviceProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxThrottleDevice(popr, true) - dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + dAtA := proto.MarshalTextString(p) msg := &LinuxThrottleDevice{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4129,11 +4128,11 @@ func TestLinuxThrottleDeviceProtoText(t *testing.T) { func TestLinuxThrottleDeviceProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxThrottleDevice(popr, true) - dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + dAtA := proto.CompactTextString(p) msg := &LinuxThrottleDevice{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4143,11 +4142,11 @@ func TestLinuxThrottleDeviceProtoCompactText(t *testing.T) { func TestLinuxBlockIOProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxBlockIO(popr, true) - dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + dAtA := proto.MarshalTextString(p) msg := &LinuxBlockIO{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4157,11 +4156,11 @@ func TestLinuxBlockIOProtoText(t *testing.T) { func TestLinuxBlockIOProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxBlockIO(popr, true) - dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + dAtA := proto.CompactTextString(p) msg := &LinuxBlockIO{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4171,11 +4170,11 @@ func TestLinuxBlockIOProtoCompactText(t *testing.T) { func TestLinuxPidsProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxPids(popr, true) - dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + dAtA := proto.MarshalTextString(p) msg := &LinuxPids{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4185,11 +4184,11 @@ func TestLinuxPidsProtoText(t *testing.T) { func TestLinuxPidsProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxPids(popr, true) - dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + dAtA := proto.CompactTextString(p) msg := &LinuxPids{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4199,11 +4198,11 @@ func TestLinuxPidsProtoCompactText(t *testing.T) { func TestLinuxDeviceCgroupProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxDeviceCgroup(popr, true) - dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + dAtA := proto.MarshalTextString(p) msg := &LinuxDeviceCgroup{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4213,11 +4212,11 @@ func TestLinuxDeviceCgroupProtoText(t *testing.T) { func TestLinuxDeviceCgroupProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxDeviceCgroup(popr, true) - dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + dAtA := proto.CompactTextString(p) msg := &LinuxDeviceCgroup{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4227,11 +4226,11 @@ func TestLinuxDeviceCgroupProtoCompactText(t *testing.T) { func TestLinuxNetworkProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxNetwork(popr, true) - dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + dAtA := proto.MarshalTextString(p) msg := &LinuxNetwork{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4241,11 +4240,11 @@ func TestLinuxNetworkProtoText(t *testing.T) { func TestLinuxNetworkProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxNetwork(popr, true) - dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + dAtA := proto.CompactTextString(p) msg := &LinuxNetwork{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4255,11 +4254,11 @@ func TestLinuxNetworkProtoCompactText(t *testing.T) { func TestLinuxHugepageLimitProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxHugepageLimit(popr, true) - dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + dAtA := proto.MarshalTextString(p) msg := &LinuxHugepageLimit{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4269,11 +4268,11 @@ func TestLinuxHugepageLimitProtoText(t *testing.T) { func TestLinuxHugepageLimitProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxHugepageLimit(popr, true) - dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + dAtA := proto.CompactTextString(p) msg := &LinuxHugepageLimit{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4283,11 +4282,11 @@ func TestLinuxHugepageLimitProtoCompactText(t *testing.T) { func TestLinuxInterfacePriorityProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxInterfacePriority(popr, true) - dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + dAtA := proto.MarshalTextString(p) msg := &LinuxInterfacePriority{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4297,11 +4296,11 @@ func TestLinuxInterfacePriorityProtoText(t *testing.T) { func TestLinuxInterfacePriorityProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxInterfacePriority(popr, true) - dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + dAtA := proto.CompactTextString(p) msg := &LinuxInterfacePriority{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4311,11 +4310,11 @@ func TestLinuxInterfacePriorityProtoCompactText(t *testing.T) { func TestLinuxSeccompProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxSeccomp(popr, true) - dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + dAtA := proto.MarshalTextString(p) msg := &LinuxSeccomp{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4325,11 +4324,11 @@ func TestLinuxSeccompProtoText(t *testing.T) { func TestLinuxSeccompProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxSeccomp(popr, true) - dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + dAtA := proto.CompactTextString(p) msg := &LinuxSeccomp{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4339,11 +4338,11 @@ func TestLinuxSeccompProtoCompactText(t *testing.T) { func TestLinuxSeccompArgProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxSeccompArg(popr, true) - dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + dAtA := proto.MarshalTextString(p) msg := &LinuxSeccompArg{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4353,11 +4352,11 @@ func TestLinuxSeccompArgProtoText(t *testing.T) { func TestLinuxSeccompArgProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxSeccompArg(popr, true) - dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + dAtA := proto.CompactTextString(p) msg := &LinuxSeccompArg{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4367,11 +4366,11 @@ func TestLinuxSeccompArgProtoCompactText(t *testing.T) { func TestLinuxSyscallProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxSyscall(popr, true) - dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + dAtA := proto.MarshalTextString(p) msg := &LinuxSyscall{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4381,11 +4380,11 @@ func TestLinuxSyscallProtoText(t *testing.T) { func TestLinuxSyscallProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxSyscall(popr, true) - dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + dAtA := proto.CompactTextString(p) msg := &LinuxSyscall{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4395,11 +4394,11 @@ func TestLinuxSyscallProtoCompactText(t *testing.T) { func TestLinuxIntelRdtProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxIntelRdt(popr, true) - dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) + dAtA := proto.MarshalTextString(p) msg := &LinuxIntelRdt{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4409,11 +4408,11 @@ func TestLinuxIntelRdtProtoText(t *testing.T) { func TestLinuxIntelRdtProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxIntelRdt(popr, true) - dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) + dAtA := proto.CompactTextString(p) msg := &LinuxIntelRdt{} - if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { + if err := proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4423,10 +4422,10 @@ func TestLinuxIntelRdtProtoCompactText(t *testing.T) { func TestSpecSize(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedSpec(popr, true) - size2 := github_com_gogo_protobuf_proto.Size(p) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + size2 := proto.Size(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -4437,14 +4436,14 @@ func TestSpecSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := github_com_gogo_protobuf_proto.Size(p) + size3 := proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkSpecSize(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*Spec, 1000) for i := 0; i < 1000; i++ { @@ -4459,10 +4458,10 @@ func BenchmarkSpecSize(b *testing.B) { func TestProcessSize(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedProcess(popr, true) - size2 := github_com_gogo_protobuf_proto.Size(p) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + size2 := proto.Size(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -4473,14 +4472,14 @@ func TestProcessSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := github_com_gogo_protobuf_proto.Size(p) + size3 := proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkProcessSize(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*Process, 1000) for i := 0; i < 1000; i++ { @@ -4495,10 +4494,10 @@ func BenchmarkProcessSize(b *testing.B) { func TestBoxSize(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedBox(popr, true) - size2 := github_com_gogo_protobuf_proto.Size(p) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + size2 := proto.Size(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -4509,14 +4508,14 @@ func TestBoxSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := github_com_gogo_protobuf_proto.Size(p) + size3 := proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkBoxSize(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*Box, 1000) for i := 0; i < 1000; i++ { @@ -4531,10 +4530,10 @@ func BenchmarkBoxSize(b *testing.B) { func TestUserSize(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedUser(popr, true) - size2 := github_com_gogo_protobuf_proto.Size(p) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + size2 := proto.Size(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -4545,14 +4544,14 @@ func TestUserSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := github_com_gogo_protobuf_proto.Size(p) + size3 := proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkUserSize(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*User, 1000) for i := 0; i < 1000; i++ { @@ -4567,10 +4566,10 @@ func BenchmarkUserSize(b *testing.B) { func TestLinuxCapabilitiesSize(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxCapabilities(popr, true) - size2 := github_com_gogo_protobuf_proto.Size(p) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + size2 := proto.Size(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -4581,14 +4580,14 @@ func TestLinuxCapabilitiesSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := github_com_gogo_protobuf_proto.Size(p) + size3 := proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkLinuxCapabilitiesSize(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*LinuxCapabilities, 1000) for i := 0; i < 1000; i++ { @@ -4603,10 +4602,10 @@ func BenchmarkLinuxCapabilitiesSize(b *testing.B) { func TestPOSIXRlimitSize(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedPOSIXRlimit(popr, true) - size2 := github_com_gogo_protobuf_proto.Size(p) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + size2 := proto.Size(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -4617,14 +4616,14 @@ func TestPOSIXRlimitSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := github_com_gogo_protobuf_proto.Size(p) + size3 := proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkPOSIXRlimitSize(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*POSIXRlimit, 1000) for i := 0; i < 1000; i++ { @@ -4639,10 +4638,10 @@ func BenchmarkPOSIXRlimitSize(b *testing.B) { func TestMountSize(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedMount(popr, true) - size2 := github_com_gogo_protobuf_proto.Size(p) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + size2 := proto.Size(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -4653,14 +4652,14 @@ func TestMountSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := github_com_gogo_protobuf_proto.Size(p) + size3 := proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkMountSize(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*Mount, 1000) for i := 0; i < 1000; i++ { @@ -4675,10 +4674,10 @@ func BenchmarkMountSize(b *testing.B) { func TestRootSize(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedRoot(popr, true) - size2 := github_com_gogo_protobuf_proto.Size(p) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + size2 := proto.Size(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -4689,14 +4688,14 @@ func TestRootSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := github_com_gogo_protobuf_proto.Size(p) + size3 := proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkRootSize(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*Root, 1000) for i := 0; i < 1000; i++ { @@ -4711,10 +4710,10 @@ func BenchmarkRootSize(b *testing.B) { func TestHooksSize(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedHooks(popr, true) - size2 := github_com_gogo_protobuf_proto.Size(p) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + size2 := proto.Size(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -4725,14 +4724,14 @@ func TestHooksSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := github_com_gogo_protobuf_proto.Size(p) + size3 := proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkHooksSize(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*Hooks, 1000) for i := 0; i < 1000; i++ { @@ -4747,10 +4746,10 @@ func BenchmarkHooksSize(b *testing.B) { func TestHookSize(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedHook(popr, true) - size2 := github_com_gogo_protobuf_proto.Size(p) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + size2 := proto.Size(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -4761,14 +4760,14 @@ func TestHookSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := github_com_gogo_protobuf_proto.Size(p) + size3 := proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkHookSize(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*Hook, 1000) for i := 0; i < 1000; i++ { @@ -4783,10 +4782,10 @@ func BenchmarkHookSize(b *testing.B) { func TestLinuxSize(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinux(popr, true) - size2 := github_com_gogo_protobuf_proto.Size(p) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + size2 := proto.Size(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -4797,14 +4796,14 @@ func TestLinuxSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := github_com_gogo_protobuf_proto.Size(p) + size3 := proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkLinuxSize(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*Linux, 1000) for i := 0; i < 1000; i++ { @@ -4819,10 +4818,10 @@ func BenchmarkLinuxSize(b *testing.B) { func TestWindowsSize(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedWindows(popr, true) - size2 := github_com_gogo_protobuf_proto.Size(p) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + size2 := proto.Size(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -4833,14 +4832,14 @@ func TestWindowsSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := github_com_gogo_protobuf_proto.Size(p) + size3 := proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkWindowsSize(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*Windows, 1000) for i := 0; i < 1000; i++ { @@ -4855,10 +4854,10 @@ func BenchmarkWindowsSize(b *testing.B) { func TestSolarisSize(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedSolaris(popr, true) - size2 := github_com_gogo_protobuf_proto.Size(p) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + size2 := proto.Size(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -4869,14 +4868,14 @@ func TestSolarisSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := github_com_gogo_protobuf_proto.Size(p) + size3 := proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkSolarisSize(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*Solaris, 1000) for i := 0; i < 1000; i++ { @@ -4891,10 +4890,10 @@ func BenchmarkSolarisSize(b *testing.B) { func TestLinuxIDMappingSize(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxIDMapping(popr, true) - size2 := github_com_gogo_protobuf_proto.Size(p) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + size2 := proto.Size(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -4905,14 +4904,14 @@ func TestLinuxIDMappingSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := github_com_gogo_protobuf_proto.Size(p) + size3 := proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkLinuxIDMappingSize(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*LinuxIDMapping, 1000) for i := 0; i < 1000; i++ { @@ -4927,10 +4926,10 @@ func BenchmarkLinuxIDMappingSize(b *testing.B) { func TestLinuxNamespaceSize(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxNamespace(popr, true) - size2 := github_com_gogo_protobuf_proto.Size(p) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + size2 := proto.Size(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -4941,14 +4940,14 @@ func TestLinuxNamespaceSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := github_com_gogo_protobuf_proto.Size(p) + size3 := proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkLinuxNamespaceSize(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*LinuxNamespace, 1000) for i := 0; i < 1000; i++ { @@ -4963,10 +4962,10 @@ func BenchmarkLinuxNamespaceSize(b *testing.B) { func TestLinuxDeviceSize(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxDevice(popr, true) - size2 := github_com_gogo_protobuf_proto.Size(p) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + size2 := proto.Size(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -4977,14 +4976,14 @@ func TestLinuxDeviceSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := github_com_gogo_protobuf_proto.Size(p) + size3 := proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkLinuxDeviceSize(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*LinuxDevice, 1000) for i := 0; i < 1000; i++ { @@ -4999,10 +4998,10 @@ func BenchmarkLinuxDeviceSize(b *testing.B) { func TestLinuxResourcesSize(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxResources(popr, true) - size2 := github_com_gogo_protobuf_proto.Size(p) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + size2 := proto.Size(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -5013,14 +5012,14 @@ func TestLinuxResourcesSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := github_com_gogo_protobuf_proto.Size(p) + size3 := proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkLinuxResourcesSize(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*LinuxResources, 1000) for i := 0; i < 1000; i++ { @@ -5035,10 +5034,10 @@ func BenchmarkLinuxResourcesSize(b *testing.B) { func TestLinuxMemorySize(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxMemory(popr, true) - size2 := github_com_gogo_protobuf_proto.Size(p) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + size2 := proto.Size(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -5049,14 +5048,14 @@ func TestLinuxMemorySize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := github_com_gogo_protobuf_proto.Size(p) + size3 := proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkLinuxMemorySize(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*LinuxMemory, 1000) for i := 0; i < 1000; i++ { @@ -5071,10 +5070,10 @@ func BenchmarkLinuxMemorySize(b *testing.B) { func TestLinuxCPUSize(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxCPU(popr, true) - size2 := github_com_gogo_protobuf_proto.Size(p) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + size2 := proto.Size(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -5085,14 +5084,14 @@ func TestLinuxCPUSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := github_com_gogo_protobuf_proto.Size(p) + size3 := proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkLinuxCPUSize(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*LinuxCPU, 1000) for i := 0; i < 1000; i++ { @@ -5107,10 +5106,10 @@ func BenchmarkLinuxCPUSize(b *testing.B) { func TestLinuxWeightDeviceSize(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxWeightDevice(popr, true) - size2 := github_com_gogo_protobuf_proto.Size(p) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + size2 := proto.Size(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -5121,14 +5120,14 @@ func TestLinuxWeightDeviceSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := github_com_gogo_protobuf_proto.Size(p) + size3 := proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkLinuxWeightDeviceSize(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*LinuxWeightDevice, 1000) for i := 0; i < 1000; i++ { @@ -5143,10 +5142,10 @@ func BenchmarkLinuxWeightDeviceSize(b *testing.B) { func TestLinuxThrottleDeviceSize(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxThrottleDevice(popr, true) - size2 := github_com_gogo_protobuf_proto.Size(p) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + size2 := proto.Size(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -5157,14 +5156,14 @@ func TestLinuxThrottleDeviceSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := github_com_gogo_protobuf_proto.Size(p) + size3 := proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkLinuxThrottleDeviceSize(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*LinuxThrottleDevice, 1000) for i := 0; i < 1000; i++ { @@ -5179,10 +5178,10 @@ func BenchmarkLinuxThrottleDeviceSize(b *testing.B) { func TestLinuxBlockIOSize(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxBlockIO(popr, true) - size2 := github_com_gogo_protobuf_proto.Size(p) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + size2 := proto.Size(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -5193,14 +5192,14 @@ func TestLinuxBlockIOSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := github_com_gogo_protobuf_proto.Size(p) + size3 := proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkLinuxBlockIOSize(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*LinuxBlockIO, 1000) for i := 0; i < 1000; i++ { @@ -5215,10 +5214,10 @@ func BenchmarkLinuxBlockIOSize(b *testing.B) { func TestLinuxPidsSize(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxPids(popr, true) - size2 := github_com_gogo_protobuf_proto.Size(p) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + size2 := proto.Size(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -5229,14 +5228,14 @@ func TestLinuxPidsSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := github_com_gogo_protobuf_proto.Size(p) + size3 := proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkLinuxPidsSize(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*LinuxPids, 1000) for i := 0; i < 1000; i++ { @@ -5251,10 +5250,10 @@ func BenchmarkLinuxPidsSize(b *testing.B) { func TestLinuxDeviceCgroupSize(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxDeviceCgroup(popr, true) - size2 := github_com_gogo_protobuf_proto.Size(p) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + size2 := proto.Size(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -5265,14 +5264,14 @@ func TestLinuxDeviceCgroupSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := github_com_gogo_protobuf_proto.Size(p) + size3 := proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkLinuxDeviceCgroupSize(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*LinuxDeviceCgroup, 1000) for i := 0; i < 1000; i++ { @@ -5287,10 +5286,10 @@ func BenchmarkLinuxDeviceCgroupSize(b *testing.B) { func TestLinuxNetworkSize(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxNetwork(popr, true) - size2 := github_com_gogo_protobuf_proto.Size(p) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + size2 := proto.Size(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -5301,14 +5300,14 @@ func TestLinuxNetworkSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := github_com_gogo_protobuf_proto.Size(p) + size3 := proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkLinuxNetworkSize(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*LinuxNetwork, 1000) for i := 0; i < 1000; i++ { @@ -5323,10 +5322,10 @@ func BenchmarkLinuxNetworkSize(b *testing.B) { func TestLinuxHugepageLimitSize(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxHugepageLimit(popr, true) - size2 := github_com_gogo_protobuf_proto.Size(p) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + size2 := proto.Size(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -5337,14 +5336,14 @@ func TestLinuxHugepageLimitSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := github_com_gogo_protobuf_proto.Size(p) + size3 := proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkLinuxHugepageLimitSize(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*LinuxHugepageLimit, 1000) for i := 0; i < 1000; i++ { @@ -5359,10 +5358,10 @@ func BenchmarkLinuxHugepageLimitSize(b *testing.B) { func TestLinuxInterfacePrioritySize(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxInterfacePriority(popr, true) - size2 := github_com_gogo_protobuf_proto.Size(p) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + size2 := proto.Size(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -5373,14 +5372,14 @@ func TestLinuxInterfacePrioritySize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := github_com_gogo_protobuf_proto.Size(p) + size3 := proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkLinuxInterfacePrioritySize(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*LinuxInterfacePriority, 1000) for i := 0; i < 1000; i++ { @@ -5395,10 +5394,10 @@ func BenchmarkLinuxInterfacePrioritySize(b *testing.B) { func TestLinuxSeccompSize(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxSeccomp(popr, true) - size2 := github_com_gogo_protobuf_proto.Size(p) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + size2 := proto.Size(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -5409,14 +5408,14 @@ func TestLinuxSeccompSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := github_com_gogo_protobuf_proto.Size(p) + size3 := proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkLinuxSeccompSize(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*LinuxSeccomp, 1000) for i := 0; i < 1000; i++ { @@ -5431,10 +5430,10 @@ func BenchmarkLinuxSeccompSize(b *testing.B) { func TestLinuxSeccompArgSize(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxSeccompArg(popr, true) - size2 := github_com_gogo_protobuf_proto.Size(p) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + size2 := proto.Size(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -5445,14 +5444,14 @@ func TestLinuxSeccompArgSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := github_com_gogo_protobuf_proto.Size(p) + size3 := proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkLinuxSeccompArgSize(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*LinuxSeccompArg, 1000) for i := 0; i < 1000; i++ { @@ -5467,10 +5466,10 @@ func BenchmarkLinuxSeccompArgSize(b *testing.B) { func TestLinuxSyscallSize(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxSyscall(popr, true) - size2 := github_com_gogo_protobuf_proto.Size(p) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + size2 := proto.Size(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -5481,14 +5480,14 @@ func TestLinuxSyscallSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := github_com_gogo_protobuf_proto.Size(p) + size3 := proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkLinuxSyscallSize(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*LinuxSyscall, 1000) for i := 0; i < 1000; i++ { @@ -5503,10 +5502,10 @@ func BenchmarkLinuxSyscallSize(b *testing.B) { func TestLinuxIntelRdtSize(t *testing.T) { seed := time.Now().UnixNano() - popr := math_rand.New(math_rand.NewSource(seed)) + popr := rand.New(rand.NewSource(seed)) p := NewPopulatedLinuxIntelRdt(popr, true) - size2 := github_com_gogo_protobuf_proto.Size(p) - dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) + size2 := proto.Size(p) + dAtA, err := proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -5517,14 +5516,14 @@ func TestLinuxIntelRdtSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := github_com_gogo_protobuf_proto.Size(p) + size3 := proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkLinuxIntelRdtSize(b *testing.B) { - popr := math_rand.New(math_rand.NewSource(616)) + popr := rand.New(rand.NewSource(616)) total := 0 pops := make([]*LinuxIntelRdt, 1000) for i := 0; i < 1000; i++ {