Fish will flake when it is finished cooking. You can use a fork to test it. Just use the tines to test the thickest part of the fish. Twist the fork slightly and you will see it flake or separate very easily. Cod will also look much more white than it did before it was cooked.