Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

ipv4_test.go 472 B

12345678910111213141516171819202122
  1. // Copyright 2017 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. package ipv4
  5. import (
  6. "fmt"
  7. "os"
  8. "testing"
  9. )
  10. var disableTests = false
  11. func TestMain(m *testing.M) {
  12. if disableTests {
  13. fmt.Fprintf(os.Stderr, "ipv4 tests disabled in Go 1.9 until netreflect is fixed. (Issue 19051)\n")
  14. os.Exit(0)
  15. }
  16. // call flag.Parse() here if TestMain uses flags
  17. os.Exit(m.Run())
  18. }