Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Bug in Coverage Reporter #471

Open
ankushdesai opened this issue Oct 22, 2019 · 2 comments
Open

Bug in Coverage Reporter #471

ankushdesai opened this issue Oct 22, 2019 · 2 comments

Comments

@ankushdesai
Copy link
Member

I think there is a bug in the coverage reporter, it is not taking into account the "default" transitions.

I am 100% sure that the default transition is triggered during testing but the coverage reporter says: Events not covered: Microsoft.PSharp.Default

Can you please take a look and confirm that this is bug in the current implementation.

@akashlal
Copy link
Contributor

Hey Ankush, can you send a short P# program with the bug? I don't understand what exactly is the bug that you're referring to.

@ankushdesai
Copy link
Member Author

ankushdesai commented Oct 22, 2019

Sorry, for the incomplete information.

I have a P program with following state:
state X { entry { } on null goto X; }
on running PSharpTester with coverage enabled. The coverage report always says:

Machine: Y
Machine event coverage: 50.0%
State: InitState
State event coverage: 100.0%
Next states: Init_7

State: X
State event coverage: 0.0%
Events not covered: Microsoft.PSharp.Default
Previous states: Init_7

I am very sure that the null transition which is the default transition in PSharp is triggered. But its not covered in the coverage report and shows 0.0%.

Does this help?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants