Checking the weight and diameter is a good first step - weeds out the total garbage. The standard values are widely published. If the item is a couple grams light, it ain't genuine.
XRF is used, but that only checks the surface.
There are several models of inductive-resistance testers that can differentiate among fineness and even different alloys.
Beyond that, you would need to do a specific gravity test and check the item with ultrasound (this detects gold plating over tungsten core, etc.
That's about it for NON DESTRUCTIVE testing.
Obviously the gold standard (pun intended) is a little hard on the item: Melt it, stir well, cast a bar and then assay a sample using either traditional methods or a mass spectrometer.
(If you want to see an example of this, hunt up the last episode of the 1st season of "Gold Rush"
-----Burton
50+ year / Life / Emeritus
ANA member (joined 12/1/1973)
Life member: Numismatics International, CONECA
Member: TNA, FtWCC, NETCC, EveryCountry (online) coin club
Owned by three cats and a wife of 40+ years (joined 1983)
Author: 3rd Edition of the Sample Slabs book,
https://www.sampleslabs.info/