Skip to content

Commit

Permalink
helper functions for jobspec parse test
Browse files Browse the repository at this point in the history
  • Loading branch information
pkazmierczak committed Jul 14, 2022
1 parent 866a667 commit 07cfc80
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions jobspec/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@ const (
templateChangeModeRestart = "restart"
)

// Helper functions below are only used by this test suite
func int8ToPtr(i int8) *int8 {
return &i
}
func uint64ToPtr(u uint64) *uint64 {
return &u
}
func int64ToPtr(i int64) *int64 {
return &i
}

func TestParse(t *testing.T) {
ci.Parallel(t)

Expand Down

0 comments on commit 07cfc80

Please sign in to comment.