Coronavirus: How does Covid-19 test-and-trace work?

The scheme told Boris Johnson he had been in close contact with someone who tested positive.