[Groonga-commit] groonga/grnci at 05798c0 [master] Remove old tests for GQTPConn.

Back to archive index

Susumu Yata null+****@clear*****
Thu Jul 27 11:33:45 JST 2017


Susumu Yata	2017-07-27 11:33:45 +0900 (Thu, 27 Jul 2017)

  New Revision: 05798c07f25e272c7f5fcb9d05d50c70fb1d5b3a
  https://github.com/groonga/grnci/commit/05798c07f25e272c7f5fcb9d05d50c70fb1d5b3a

  Message:
    Remove old tests for GQTPConn.

  Modified files:
    v2/gqtp_test.go

  Modified: v2/gqtp_test.go (+0 -56)
===================================================================
--- v2/gqtp_test.go    2017-07-27 11:31:51 +0900 (b61bfb7)
+++ v2/gqtp_test.go    2017-07-27 11:33:45 +0900 (1e34685)
@@ -4,55 +4,6 @@ import (
 	"testing"
 )
 
-// func TestGQTPConn(t *testing.T) {
-// 	type Pair struct {
-// 		Command string
-// 		Body    string
-// 	}
-// 	pairs := []Pair{
-// 		// Pair{"no_such_command", ""},
-// 		Pair{"status", ""},
-// 		Pair{`table_create Tbl TABLE_PAT_KEY ShortText`, ""},
-// 		Pair{`column_create Tbl Col COLUMN_SCALAR Int32`, ""},
-// 		Pair{`load --table Tbl --values '[["_key"],["test"]]'`, ""},
-// 		Pair{`load --table Tbl --values '[["_key"],["test" invalid_format]]'`, ""},
-// 		Pair{"load --table Tbl", `[["_key"],["test"]]`},
-// 		Pair{"load --table Tbl", `[["_key"],["test" invalid_format]]`},
-// 		Pair{"select --table Tbl", ""},
-// 		Pair{"dump", ""},
-// 	}
-
-// 	conn, err := DialGQTP("")
-// 	if err != nil {
-// 		t.Skipf("DialGQTP failed: %v", err)
-// 	}
-// 	defer conn.Close()
-
-// 	for _, pair := range pairs {
-// 		var body io.Reader
-// 		if pair.Body != "" {
-// 			body = strings.NewReader(pair.Body)
-// 		}
-// 		log.Printf("command = %s", pair.Command)
-// 		resp, err := conn.Exec(pair.Command, body)
-// 		if err != nil {
-// 			t.Fatalf("conn.Exec failed: %v", err)
-// 		}
-// 		result, err := ioutil.ReadAll(resp)
-// 		if err != nil {
-// 			t.Fatalf("ioutil.ReadAll failed: %v", err)
-// 		}
-// 		log.Printf("start = %v, elapsed = %v", resp.Start(), resp.Elapsed())
-// 		log.Printf("result = %s", result)
-// 		if err := resp.Err(); err != nil {
-// 			log.Printf("err = %v", err)
-// 		}
-// 		if err := resp.Close(); err != nil {
-// 			t.Fatalf("resp.Close failed: %v", err)
-// 		}
-// 	}
-// }
-
 // func TestGQTPClient(t *testing.T) {
 // 	type Pair struct {
 // 		Command string
@@ -102,13 +53,6 @@ import (
 // 	}
 // }
 
-func TestGQTPConnHandler(t *testing.T) {
-	var i interface{} = &GQTPConn{}
-	if _, ok := i.(Handler); !ok {
-		t.Fatalf("Failed to cast from *GQTPConn to Handler")
-	}
-}
-
 func TestGQTPClientHandler(t *testing.T) {
 	var i interface{} = &GQTPClient{}
 	if _, ok := i.(Handler); !ok {
-------------- next part --------------
HTML����������������������������...
Télécharger 



More information about the Groonga-commit mailing list
Back to archive index