Usage stored as decimal in MySQL, more tests and sample tariff plan data

This commit is contained in:
DanB
2014-05-28 09:36:16 +02:00
parent 42e9719fed
commit 4f95f56284
15 changed files with 32 additions and 24 deletions

View File

@@ -162,7 +162,8 @@ func TestHandleCdr2File(t *testing.T) {
return
}
var fileContent = `616350843,20131022145011,20131022172857,3656,1001,,,data,mo,640113,0.000000,1.222656,1.222660
616199016,20131022154924,20131022154955,3656,1001,086517174963,,voice,mo,31,0.000000,0.000000,0.000000`
616199016,20131022154924,20131022154955,3656,1001,086517174963,,voice,mo,31,0.000000,0.000000,0.000000
800873243,20140516063739,20140516063739,9774,1001,+49621621391,,sms,mo,1,0.00000,0.00000,0.00000`
fileName := "file2.csv"
tmpFilePath := path.Join("/tmp", fileName)
if err := ioutil.WriteFile(tmpFilePath, []byte(fileContent), 0644); err != nil {