Endocrine or hormone function tests can help your health care provider diagnose a pituitary gland disorder. These tests can measure the levels of hormones that the gland makes.