Unlike a test for diabetes, blood sample for a liver function test does not require you to fast before the blood is drawn. Although, there are certain foods and medications.