There's a basic edibility test you can do on lots of suspect foraged good, I've tried it before when I got really hungry in a jungle and found a plant I thought looked maybe edible.
It wasn't, but I found that out from the edibility test rather than likely painful death of eating it.
You get some of what you're intending to eat and you rub it on the inside of your arm where the skin is sensitive, if it doesn't develop a reaction you move onto the next stage, which is cooking and putting it on your lips, no reaction try a bit in your cheek, no reaction carefully go for it. It applies more to legumes and veg than mushrooms and will actually exclude stuff you can eat (like ginger and chilli isn't passing that test)