The Cpeptide test is a tool your doctor uses to test whether you have type 1 diabetes, when the immune system attacks and destroys cells in the pancreas, or type 2, when your body doesn’t use insulin as well it should.