github.com/asynkron/protoactor-go@v0.0.0-20240308120642-ef91a6abee75/actor/props_test.go (about)

     1  package actor
     2  
     3  import "testing"
     4  
     5  func TestProps_Clone(t *testing.T) {
     6  	p := PropsFromFunc(func(c Context) {}, WithOnInit(func(c Context) {}))
     7  	p2 := p.Clone()
     8  	if p == p2 {
     9  		t.Error("Clone should return a new instance")
    10  	}
    11  }