simple tests in place

This commit is contained in:
Radu Ioan Fericean
2012-01-30 20:10:57 +02:00
parent e83bf2514b
commit 2def2c1fbf
3 changed files with 30 additions and 11 deletions

View File

@@ -26,9 +26,10 @@ func NewStorage(nsg timeslots.StorageGetter) *Storage{
/*
RPC method providing the rating information from the storage.
*/
func (s *Storage) GetCost(in *timeslots.CallDescription, reply *string) (err error) {
*reply, err = timeslots.GetCost(in, s.sg)
return err
func (s *Storage) GetCost(in *timeslots.CallDescription, reply *CallCost) (error) {
r, e := timeslots.GetCost(in, s.sg)
*replay, err = r, e
return e
}
/*