Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Resource Tested for JSON marshalling : RunnerLabels
  • Loading branch information
sagar23sj committed Jun 22, 2021
commit fba3daddbea7e3605aa02bfd84fe5af4bf364940
18 changes: 18 additions & 0 deletions github/actions_runners_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -568,3 +568,21 @@ func TestRegistrationToken_Marshal(t *testing.T) {

testJSONMarshal(t, u, want)
}

func TestRunnerLabels_Marshal(t *testing.T) {
testJSONMarshal(t, &RunnerLabels{}, "{}")

u := &RunnerLabels{
ID: Int64(1),
Name: String("n"),
Type: String("t"),
}

want := `{
"id": 1,
"name": "n",
"type": "t"
}`

testJSONMarshal(t, u, want)
}