"I know also, my God, that You test the heart and have pleasure in uprightness..." 1 Chronicles 29:17
The sincere belief in God does not allow us to hide anything from Him. The heart is still pure before His eyes, even amongst mistakes and shortcomings.