made stuff private
This commit is contained in:
+5
-5
@@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user