(t *testing.T)
| 33 | } |
| 34 | |
| 35 | func TestIsFunction(t *testing.T) { |
| 36 | ok := Doc().Find("div").IsFunction(func(i int, s *Selection) bool { |
| 37 | return s.HasClass("container-fluid") |
| 38 | }) |
| 39 | |
| 40 | if !ok { |
| 41 | t.Error("Expected some div to have a container-fluid class.") |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | func TestIsFunctionRollback(t *testing.T) { |
| 46 | ok := Doc().Find("div").IsFunction(func(i int, s *Selection) bool { |
nothing calls this directly
no test coverage detected
searching dependent graphs…