diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2022-06-24 10:41:37 -0700 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2022-06-24 10:41:37 -0700 |
| commit | 3178ae580a3fe97d6a1167b4346d209f04e9b7e3 (patch) | |
| tree | da306047792334bbb97e07707d713d3fa582753a /hotline/client_conn_test.go | |
| parent | a1ac9a6f60c6881bb9fe97425f6aaa524b910035 (diff) | |
Implement bufio.Scanner for transaction parsing
Diffstat (limited to 'hotline/client_conn_test.go')
| -rw-r--r-- | hotline/client_conn_test.go | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/hotline/client_conn_test.go b/hotline/client_conn_test.go index da0a2cc..9f04d66 100644 --- a/hotline/client_conn_test.go +++ b/hotline/client_conn_test.go @@ -1,52 +1,2 @@ package hotline -import ( - "net" - "testing" -) - -func TestClientConn_handleTransaction(t *testing.T) { - type fields struct { - Connection net.Conn - ID *[]byte - Icon *[]byte - Flags *[]byte - UserName []byte - Account *Account - IdleTime int - Server *Server - Version *[]byte - Idle bool - AutoReply []byte - } - type args struct { - transaction *Transaction - } - tests := []struct { - name string - fields fields - args args - wantErr bool - }{ - // TODO: Add test cases. - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - cc := &ClientConn{ - Connection: tt.fields.Connection, - ID: tt.fields.ID, - Icon: tt.fields.Icon, - Flags: tt.fields.Flags, - UserName: tt.fields.UserName, - Account: tt.fields.Account, - Server: tt.fields.Server, - Version: tt.fields.Version, - Idle: tt.fields.Idle, - AutoReply: tt.fields.AutoReply, - } - if err := cc.handleTransaction(tt.args.transaction); (err != nil) != tt.wantErr { - t.Errorf("handleTransaction() error = %v, wantErr %v", err, tt.wantErr) - } - }) - } -} |