made stuff private

This commit is contained in:
2024-07-02 14:14:38 -05:00
parent eaf229abde
commit ad7b487954
9 changed files with 81 additions and 91 deletions
+5 -5
View File
@@ -12,24 +12,24 @@ var UFCEventHTML []byte
var UFCEventListHTML []byte
func TestUFCEventList(t *testing.T) {
PrintJSON(parse_ufc_event_list(UFCEventListHTML))
print_json(parse_ufc_event_list(UFCEventListHTML))
}
func TestUFCEvent(t *testing.T) {
PrintJSON(parse_ufc_event("https://ufc.com/event/ufc-297", UFCEventHTML))
print_json(parse_ufc_event("https://ufc.com/event/ufc-297", UFCEventHTML))
}
func TestParseUFCSlug(t *testing.T) {
result := parse_ufc_slug("https://ufc.com/event/ufc-fight-night-july-20-2024")
expected := "ufc-fight-night-july-20-2024"
if result != expected {
PrintJSON(result)
print_json(result)
t.FailNow()
}
}
func testScrapeUFC(t *testing.T) {
ScrapeUFC(func(e *Event) {
PrintJSON(e)
scrape_ufc(func(e *Event) {
print_json(e)
})
}