mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-25 09:08:45 +05:00
Coverage tests in console
This commit is contained in:
committed by
Dan Christian Bogos
parent
6ce6cbc47d
commit
6b4b92545d
@@ -19,6 +19,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||
package console
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/cgrates/cgrates/config"
|
||||
"github.com/cgrates/cgrates/utils"
|
||||
)
|
||||
@@ -77,6 +79,7 @@ func (self *CmdParse) LocalExecute() string {
|
||||
if rsrField, err := config.NewRSRParser(self.rpcParams.Expression); err != nil {
|
||||
return err.Error()
|
||||
} else if parsed, err := rsrField.ParseValue(self.rpcParams.Value); err != nil {
|
||||
fmt.Println("yay")
|
||||
return err.Error()
|
||||
} else {
|
||||
return parsed
|
||||
|
||||
Reference in New Issue
Block a user