Skip to content

Commit

Permalink
minor refinement in structure
Browse files Browse the repository at this point in the history
  • Loading branch information
deemount committed Mar 22, 2024
1 parent 2706b99 commit 416455d
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions inject_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,20 +81,22 @@ func TestInjectConfig(t *testing.T) {
assert.NotEqual(t, bool(false), p.IsExecutable)
}
})
t.Run("p(TestEmbeddedProcess{}).IsExecutable expected true", func(t *testing.T) {
hash := new(gobpmn_hash.Injection)
p := hash.Inject(TestEmbeddedProcess{}).(TestEmbeddedProcess)
if assert.NotNil(t, p) {
assert.Equal(t, bool(true), p.XYZIsExecutable)
}
})
t.Run("p(TestEmbeddedProcess{}).IsExecutable expected false", func(t *testing.T) {
hash := new(gobpmn_hash.Injection)
p := hash.Inject(TestEmbeddedProcess{}).(TestEmbeddedProcess)
if assert.NotNil(t, p) {
assert.NotEqual(t, bool(false), p.XYZIsExecutable)
}
})
t.Run("p(TestEmbeddedProcess{}).IsExecutable expected true",
func(t *testing.T) {
hash := new(gobpmn_hash.Injection)
p := hash.Inject(TestEmbeddedProcess{}).(TestEmbeddedProcess)
if assert.NotNil(t, p) {
assert.Equal(t, bool(true), p.XYZIsExecutable)
}
})
t.Run("p(TestEmbeddedProcess{}).IsExecutable expected false",
func(t *testing.T) {
hash := new(gobpmn_hash.Injection)
p := hash.Inject(TestEmbeddedProcess{}).(TestEmbeddedProcess)
if assert.NotNil(t, p) {
assert.NotEqual(t, bool(false), p.XYZIsExecutable)
}
})
}

func BenchmarkInject(b *testing.B) {
Expand Down

0 comments on commit 416455d

Please sign in to comment.