X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=sdl_private_fn_test.go;h=c60a16f66b448c0c2ceec0a342e2eff8b6a50cde;hb=4123ade6080f3f5e3f3bf44e30faeacc531f32d0;hp=4a4e43ed6afcc7520a28e61b414a345855a6d724;hpb=f759492b4f02f1e9d66115a6b83deec519cb5df4;p=ric-plt%2Fsdlgo.git diff --git a/sdl_private_fn_test.go b/sdl_private_fn_test.go index 4a4e43e..c60a16f 100644 --- a/sdl_private_fn_test.go +++ b/sdl_private_fn_test.go @@ -15,15 +15,22 @@ limitations under the License. */ +/* + * This source code is part of the near-RT RIC (RAN Intelligent Controller) + * platform project (RICP). + */ + package sdlgo //NewSdlInstanceForTest is used in unit tests only in order to replace the //underlying redis implementation with mock func NewSdlInstanceForTest(NameSpace string, instance iDatabase) *SdlInstance { + db := &Database{} + db.instances = append(db.instances, instance) + return &SdlInstance{ - nameSpace: NameSpace, - nsPrefix: "{" + NameSpace + "},", - eventSeparator: "___", - iDatabase: instance, + nameSpace: NameSpace, + nsPrefix: "{" + NameSpace + "},", + storage: newSyncStorage(db), } }