vitess.io/vitess@v0.16.2/go/vt/vttablet/tabletserver/throttle/mysql/probe_test.go (about)

     1  /*
     2   Copyright 2017 GitHub Inc.
     3  
     4   Licensed under MIT License. See https://github.com/github/freno/blob/master/LICENSE
     5  */
     6  
     7  package mysql
     8  
     9  import (
    10  	"testing"
    11  
    12  	"github.com/stretchr/testify/assert"
    13  )
    14  
    15  func TestNewProbe(t *testing.T) {
    16  	c := NewProbe()
    17  	assert.Equal(t, "", c.Key.Hostname)
    18  	assert.Equal(t, 0, c.Key.Port)
    19  }