I have wasted literally billions of electrons explaining how to test a fuel pump properly. If you actually follow the procedure I'm about to repeat for probably the 15th. time, you will be the only one who will admit to having done so in the past 20 years or so that I've been hanging out here.
Disconnect the fuel line at the carburetor and attach a length of rubber fuel line long enough to reach over to the fender, or somewhere similar. Start the engine and let it idle- - - - -it will run on the fuel in the float bowl for a while. In 30 seconds at idle, it should pump at least a pint of gas. Now you have done the first of three tests - - -don't stop now. Attach a pressure gauge to the line you removed from the carburetor- - -clamp it if necessary. Run the engine for a few seconds. You should see somewhere between 2 and 4 pounds of pressure, and this is important- - - -the pressure should stay there for several seconds after you shut the engine off. There is a one-way valve in the pump that prevents back flow. Now, attach a vacuum gauge to the inlet side of the pump. Run the engine. You should see 10 inches of vacuum or so, and it should also stay put for a few seconds after shutdown. If the pump can pass the pressure and vacuum tests, but is low on volume, start looking for a restriction between the pump and the fuel tank, or a clogged pickup tube in the tank. It's also possible to have an air leak in the flex line between the frame and the pump that will suck air but won't leak gas. Good luck!
Jerry