forked from wundergraph/graphql-go-tools
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR syncs following wg changes: - wundergraph#547 - wundergraph#554 - wundergraph#555 - wundergraph#556 - wundergraph#544 - wundergraph#564 - wundergraph#567 - wundergraph#568 - wundergraph#575 --------- Co-authored-by: David Steinberger <[email protected]> Co-authored-by: phob0s <[email protected]> Co-authored-by: phob0s <[email protected]> Co-authored-by: Sergiy <[email protected]> Co-authored-by: MikeWang <[email protected]> Co-authored-by: Jens Neuse <[email protected]> Co-authored-by: Alberto García Hierro <[email protected]> Co-authored-by: Aenimus <[email protected]> Co-authored-by: David Stutt <[email protected]>
- Loading branch information
1 parent
e336e7b
commit 8693715
Showing
37 changed files
with
1,774 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package quotes | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
func TestWrapBytes(t *testing.T) { | ||
testCases := []struct { | ||
s []byte | ||
want []byte | ||
}{ | ||
{nil, []byte(`""`)}, | ||
{[]byte("foo"), []byte(`"foo"`)}, | ||
} | ||
for _, tc := range testCases { | ||
tc := tc | ||
t.Run(string(tc.s), func(t *testing.T) { | ||
r := WrapBytes(tc.s) | ||
assert.Equal(t, tc.want, r) | ||
}) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.