Initial cloud-services repo - gateway service + pkg modules
This commit is contained in:
33
pkg/common/updatemanifestgen_test.go
Normal file
33
pkg/common/updatemanifestgen_test.go
Normal file
@@ -0,0 +1,33 @@
|
||||
package common
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
)
|
||||
|
||||
// If this tests runs, its causes other tests to fail as it modifies the data length
|
||||
func TestGeneratePossibilities(t *testing.T){
|
||||
t.Skip()
|
||||
var um UpdateManifest
|
||||
um.ID = 9686
|
||||
um.SUMS = "2013.05.01.02.E"
|
||||
// Alex's
|
||||
// startVOD := "00A92301084000000101012200010101010001010101000000000000000000FF7EFF7F000101010101000101010100010001010101000101010100000000000000000000000000010101000100000100010101000201010101000101020101000101010200010101010101010101000101000100010001010101010101010101010000000000000100000101020101010101010000000000000000FFFFFF000000020101020200010100"
|
||||
startVOD := "00A92301084000000101012200010101010001010101000000000000000000FF7EFF7F000101010101000101010100010001010101000101010100000000000000000000000000010101000100000100010101000201010101000101020101000101010200010101010101010101000101000100010001010101010101010101010000000000000100000101020101010101010000000000000000FFFFFF000000020101020200010100"
|
||||
um.VOD = startVOD
|
||||
dataLength = 253
|
||||
|
||||
for lic := 0; lic < 2; lic ++{
|
||||
for cil := 0; cil < 2; cil ++ {
|
||||
for lil := 0; lil < 2; lil ++{
|
||||
um.VOD = startVOD
|
||||
lengthInCRC = lic == 1
|
||||
crcInLength = cil == 1
|
||||
lengthInLength = lil == 1
|
||||
um.AddSUMSToVOD()
|
||||
|
||||
fmt.Printf("%d,%d,%t,%t,%t,%s\n", len(um.VOD)/2, dataLength, lengthInLength, crcInLength, lengthInCRC, um.VOD)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user