X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=internal%2Fcli%2Fcli_private_fn_test.go;h=34e3ab39613f255196b1e78762b19fb4357cdb73;hb=59c60ebc4ca8edd65fd9cdc1e833309f3e8bc8fe;hp=831b5f9295a087063ed414ef1095903823f269f9;hpb=977a55ca96d5dba1c7f9273671747eaf9cd6f894;p=ric-plt%2Fsdlgo.git diff --git a/internal/cli/cli_private_fn_test.go b/internal/cli/cli_private_fn_test.go index 831b5f9..34e3ab3 100644 --- a/internal/cli/cli_private_fn_test.go +++ b/internal/cli/cli_private_fn_test.go @@ -1,6 +1,6 @@ /* Copyright (c) 2021 AT&T Intellectual Property. - Copyright (c) 2018-2021 Nokia. + Copyright (c) 2018-2022 Nokia. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -22,11 +22,14 @@ package cli -import ( - "github.com/spf13/cobra" +var ( + NewRootCmd = newRootCmd + NewHealthCheckCmd = newHealthCheckCmd + NewKeysCmdForTest = newKeysCmd + NewGetCmdForTest = newGetCmd + NewSetCmdForTest = newSetCmd + NewRemoveCmdForTest = newRemoveCmd + NewNamespacesCmdForTest = newNamespacesCmd + NewStatisticsCmd = newStatisticsCmd + NewCompletionCmdForTest = newCompletionCmd ) - -// NewHealthCheckCmdForTest is used only in unit tests to mock database. -func NewHealthCheckCmdForTest(dbCreateCb DbCreateCb) *cobra.Command { - return newHealthCheckCmd(dbCreateCb) -}