rename to common/packetpadding

This commit is contained in:
Shelikhoo 2025-01-29 11:22:30 +00:00
parent fbcb9bc863
commit 9e45772177
No known key found for this signature in database
GPG key ID: 4C9764E9FE80A3DC
3 changed files with 5 additions and 5 deletions

View file

@ -1,4 +1,4 @@
package packetPaddingContainer package packetpadding
import "encoding/binary" import "encoding/binary"

View file

@ -1,4 +1,4 @@
package packetPaddingContainer package packetpadding
// PacketPaddingContainer is an interface that defines methods to pad packets // PacketPaddingContainer is an interface that defines methods to pad packets
// with a given number of bytes, and to unpack the padding from a padded packet. // with a given number of bytes, and to unpack the padding from a padded packet.

View file

@ -1,16 +1,16 @@
package packetPaddingContainer_test package packetpadding_test
import ( import (
"testing" "testing"
. "github.com/smartystreets/goconvey/convey" . "github.com/smartystreets/goconvey/convey"
"gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/v2/common/packetPaddingContainer" "gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/v2/common/packetpadding"
) )
func TestPacketPaddingContainer(t *testing.T) { func TestPacketPaddingContainer(t *testing.T) {
Convey("Given a PacketPaddingContainer", t, func() { Convey("Given a PacketPaddingContainer", t, func() {
container := packetPaddingContainer.New() container := packetpadding.New()
Convey("When packing data with padding", func() { Convey("When packing data with padding", func() {
data := []byte("testdata") data := []byte("testdata")