app_test.go 306 B

12345678910111213141516
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestDaoSecret(t *testing.T) {
  8. convey.Convey("Secret", t, func() {
  9. res, err := d.Secret(context.TODO(), "19e7f5b7d8ad531b")
  10. convey.So(err, convey.ShouldBeNil)
  11. convey.So(res, convey.ShouldNotBeNil)
  12. })
  13. }