X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=ric-plt%2Fresource-status-manager.git;a=blobdiff_plain;f=RSM%2Fmocks%2Frsm_writer_mock.go;fp=RSM%2Fmocks%2Funpacker_mock.go;h=aec981c87e4170a8ba0267bd290c8f1003fc6ca9;hp=717a18da3ca5dfc94b17726ce762b1d99b7b3c72;hb=60652d98d51ee23c1eaca2e8bc2bf19c74c57658;hpb=b8d3ff3abf409da49ecab244cd6d2c2124dbce7c diff --git a/RSM/mocks/unpacker_mock.go b/RSM/mocks/rsm_writer_mock.go similarity index 71% rename from RSM/mocks/unpacker_mock.go rename to RSM/mocks/rsm_writer_mock.go index 717a18d..aec981c 100644 --- a/RSM/mocks/unpacker_mock.go +++ b/RSM/mocks/rsm_writer_mock.go @@ -2,7 +2,7 @@ // Copyright 2019 AT&T Intellectual Property // Copyright 2019 Nokia // -// Licensed under the Apache License, Version 2.0 (the "License"); +// Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // @@ -17,20 +17,23 @@ // This source code is part of the near-RT RIC (RAN Intelligent Controller) // platform project (RICP). - package mocks import ( "github.com/stretchr/testify/mock" + "rsm/models" ) -type Asn1PduUnpackerMock struct { +type RsmWriterMock struct { mock.Mock } -func (m *Asn1PduUnpackerMock)UnpackX2apPduAsString(packedBufferSize int, packedBuf []byte, maxMessageBufferSize int) (string, error){ - args := m.Called(packedBufferSize, packedBuf, maxMessageBufferSize) - return args.Get(0).(string), args.Error(1) +func (m *RsmWriterMock) SaveRsmRanInfo(rsmRanInfo *models.RsmRanInfo) error { + args := m.Called(rsmRanInfo) + return args.Error(0) } - +func (m *RsmWriterMock) SaveRsmGeneralConfiguration(cfg *models.RsmGeneralConfiguration) error { + args := m.Called(cfg) + return args.Error(0) +}