mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
rename to common/packetpadding
This commit is contained in:
parent
fbcb9bc863
commit
9e45772177
3 changed files with 5 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
||||||
package packetPaddingContainer
|
package packetpadding
|
||||||
|
|
||||||
import "encoding/binary"
|
import "encoding/binary"
|
||||||
|
|
|
@ -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.
|
|
@ -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")
|
Loading…
Add table
Add a link
Reference in a new issue