You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bit4sat/storage/status_test.go

29 lines
428 B
Go

package storage
import (
"testing"
)
func TestUploadStatus(t *testing.T) {
// start with new status
//
//status := UpPaid | UpStored
//j, _ := json.Marshal(status)
//fmt.Printf("%s", j)
//fmt.Printf("%32b\n", UpPaid|UpStored)
//err := SetUploadStatus("1", status)
//if err != nil {
//t.Error(err)
//}
// Set to stored
//status |= UpStored
//fmt.Println(status)
//if !status.IsStored() {
//t.Error()
//}
}