-
|
Hello, I'm building a component who's job is essentially to take a single input port and multiplex the incoming data across an array of output ports. I thought writing some unit tests would be a great way to check that the component is always sending the data down the correct output index. Unfortunately, it seems that there is no way to actually check port number in the unit testing framework. The It was relatively easy for me to modify the Is there a way to check port number within a unit test that I haven't seen? Or is that just not supported currently? If the latter is true, is there any interest in adding support? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
@bocchino thoughts? |
Beta Was this translation helpful? Give feedback.
-
|
Yes, this is a known issue with the auto-generated test code. If there isn't an open issue on it, we should open one. The current workaround is to save the port number in an auxiliary variable and check the value there. |
Beta Was this translation helpful? Give feedback.
Yes, this is a known issue with the auto-generated test code. If there isn't an open issue on it, we should open one.
The current workaround is to save the port number in an auxiliary variable and check the value there.