You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
Pull Request resolved: #1826
This adds a macro that asserts an actor's behavior; we use it to test the mesh behavior:
```
hyperactor::assert_behaves!(TestMeshController as Controller<TestMesh>);
```
It is implemented by statically validating that the actor type can bind to the defined behavior. This then provide a way to both document the intended behavior of an actor, and also to statically validate at the definition site that the behavior is implemented correctly.
(We already statically validate this at the *use* site, but then the errors are already "at a distance".)
ghstack-source-id: 323322439
Reviewed By: shayne-fletcher
Differential Revision: D86786231
fbshipit-source-id: dab0e1f6d3e0bf4305cdb6cbf315d201aac49588
0 commit comments