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
Creating a Cors middleware requires configuration in some cases. That needs testing.
However, it is pretty hard to test a created Cors instance as it doesn't expose its values.
Expected Behavior
Be able to test a Cors instance for its values.
Current Behavior
Not possible. It is possible to render a debug string of the struct, however as it uses HashSet with RandomStates, instances containing HashSet values can't be tested.
Possible Solution
Have Cors implement PartialEq. Or allow access to the values of its Inner.
Steps to Reproduce (for bugs)
Set up a Cors instance
Try to test it.
Context
Your Environment
Rust Version (I.e, output of rustc -V):
Actix-* crate(s) Version:
The text was updated successfully, but these errors were encountered:
Creating a
Cors
middleware requires configuration in some cases. That needs testing.However, it is pretty hard to test a created
Cors
instance as it doesn't expose its values.Expected Behavior
Be able to test a
Cors
instance for its values.Current Behavior
Not possible. It is possible to render a debug string of the struct, however as it uses
HashSet
withRandomStates
, instances containingHashSet
values can't be tested.Possible Solution
Have
Cors
implementPartialEq
. Or allow access to the values of itsInner
.Steps to Reproduce (for bugs)
Cors
instanceContext
Your Environment
rustc -V
):The text was updated successfully, but these errors were encountered: