The antigen swab test gives you a very reliable indicator of whether you have or have not currently got the virus. A positive result has a very high chance of confirming if you are carrying covid-19 virus in sufficient quantities (viral load) to make you infectious. There is of course a margin for error in any test, but the margin is small.