padding_test.go 300 B

123456789101112131415161718192021222324
  1. package padding
  2. import (
  3. "testing"
  4. "time"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. var (
  8. p *pkcs5
  9. )
  10. func init() {
  11. p = &pkcs5{}
  12. time.Sleep(time.Second)
  13. }
  14. func TestPadding(t *testing.T) {
  15. Convey("Padding", t, func() {
  16. res := p.Padding([]byte{}, 1)
  17. So(res, ShouldNotBeEmpty)
  18. })
  19. }