MCPcopy Index your code
hub / github.com/google/go-github / TestCreateOrgInvitationOptions_Marshal

Function TestCreateOrgInvitationOptions_Marshal

github/orgs_members_test.go:944–965  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

942}
943
944func TestCreateOrgInvitationOptions_Marshal(t *testing.T) {
945 t.Parallel()
946 testJSONMarshal(t, &CreateOrgInvitationOptions{}, "{}")
947
948 u := &CreateOrgInvitationOptions{
949 InviteeID: Ptr(int64(1)),
950 Email: Ptr("email"),
951 Role: Ptr("role"),
952 TeamID: []int64{1},
953 }
954
955 want := `{
956 "invitee_id": 1,
957 "email": "email",
958 "role": "role",
959 "team_ids": [
960 1
961 ]
962 }`
963
964 testJSONMarshal(t, u, want)
965}

Callers

nothing calls this directly

Calls 2

testJSONMarshalFunction · 0.85
PtrFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…