Highly-opinionated (ex-bullshit-free) MTPROTO proxy for Telegram. If you use v1.0 or upgrade broke you proxy, please read the chapter Version 2
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

noop_test.go 442B

1234567891011121314151617181920212223
  1. package ipblocklist_test
  2. import (
  3. "net"
  4. "testing"
  5. "github.com/9seconds/mtg/v2/ipblocklist"
  6. "github.com/stretchr/testify/suite"
  7. )
  8. type NoopTestSuite struct {
  9. suite.Suite
  10. }
  11. func (suite *NoopTestSuite) TestOp() {
  12. suite.False(ipblocklist.NewNoop().Contains(net.ParseIP("10.0.0.10")))
  13. suite.False(ipblocklist.NewNoop().Contains(net.ParseIP("10.0.0.10")))
  14. }
  15. func TestNoop(t *testing.T) {
  16. t.Parallel()
  17. suite.Run(t, &NoopTestSuite{})
  18. }