Skip to content

Commit

Permalink
Gofumpt (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnweldon authored Apr 5, 2023
1 parent 1661589 commit dab8761
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ber_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func TestInteger(t *testing.T) {
}

func TestString(t *testing.T) {
var value = "Hic sunt dracones"
value := "Hic sunt dracones"

packet := NewString(ClassUniversal, TypePrimitive, TagOctetString, value, "String")

Expand Down Expand Up @@ -150,7 +150,7 @@ func TestReadPacket(t *testing.T) {

func TestBinaryInteger(t *testing.T) {
// data src : http://luca.ntop.org/Teaching/Appunti/asn1.html 5.7
var data = []struct {
data := []struct {
v int64
e []byte
}{
Expand Down
8 changes: 4 additions & 4 deletions generalizedTime_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ func TestParseGeneralizedTime(t *testing.T) {
}{
{
"20170222190527Z",
time.Date(2017, time.Month(2), 22, 19, 05, 27, 0, time.UTC),
time.Date(2017, time.Month(2), 22, 19, 5, 27, 0, time.UTC),
nil,
},
{
"201702221905Z",
time.Date(2017, time.Month(2), 22, 19, 05, 0, 0, time.UTC),
time.Date(2017, time.Month(2), 22, 19, 5, 0, 0, time.UTC),
nil,
},
{
Expand Down Expand Up @@ -53,12 +53,12 @@ func TestParseGeneralizedTime(t *testing.T) {
},
{
"20170222190527.123Z",
time.Date(2017, time.Month(2), 22, 19, 05, 27, 123*1000*1000, time.UTC),
time.Date(2017, time.Month(2), 22, 19, 5, 27, 123*1000*1000, time.UTC),
nil,
},
{
"20170222190527,123Z",
time.Date(2017, time.Month(2), 22, 19, 05, 27, 123*1000*1000, time.UTC),
time.Date(2017, time.Month(2), 22, 19, 5, 27, 123*1000*1000, time.UTC),
nil,
},
{
Expand Down

0 comments on commit dab8761

Please sign in to comment.