Added documentation and tests for request.Meta

This commit is contained in:
Musab Gültekin
2021-05-30 10:43:54 +03:00
parent a2a91b7b2e
commit d3bdaf6240
3 changed files with 48 additions and 1 deletions

14
client/request_test.go Normal file
View File

@ -0,0 +1,14 @@
package client
import (
"github.com/stretchr/testify/assert"
"testing"
)
func TestMeta(t *testing.T) {
req, err := NewRequest("GET", "https://github.com/geziyor/geziyor", nil)
assert.NoError(t, err)
req.Meta["key"] = "value"
assert.Equal(t, req.Meta["key"], "value")
}