2017-09-11 02:58:50 +00:00
|
|
|
package release
|
|
|
|
|
|
|
|
import (
|
|
|
|
"bytes"
|
2020-06-14 08:29:16 +00:00
|
|
|
"testing"
|
2017-09-11 02:58:50 +00:00
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestRelease_Write(t *testing.T) {
|
|
|
|
r := &Release{
|
|
|
|
Architectures: []string{"all", "i386", "amd64"},
|
|
|
|
Suite: "stable",
|
|
|
|
Components: []string{"main"},
|
|
|
|
Date: time.Now(),
|
|
|
|
}
|
|
|
|
|
|
|
|
var b bytes.Buffer
|
|
|
|
|
|
|
|
r.Write(&b)
|
|
|
|
|
|
|
|
t.Log(b.String())
|
|
|
|
}
|