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
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".)
Differential Revision: [D86786231](https://our.internmc.facebook.com/intern/diff/D86786231/)
**NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D86786231/)!
ghstack-source-id: 322613843
0 commit comments