add unit test and address comments

This commit is contained in:
Jingfang Liu
2018-06-11 14:52:31 -07:00
parent 37720765fc
commit 934e37d781
7 changed files with 72 additions and 12 deletions

View File

@@ -61,8 +61,8 @@ func (r *Resource) Behavior() GenerationBehavior {
return r.b
}
// ChangeBehavior changes the resource to the new behavior
func (r *Resource) ChangeBehavior(b GenerationBehavior) {
// SetBehavior changes the resource to the new behavior
func (r *Resource) SetBehavior(b GenerationBehavior) {
r.b = b
}