You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: ztrmv.go
    path of file: ./repos/gonum/blas/testblas
    
    the code of the file until where you have to start completion: // Copyright Â©2017 The Gonum Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package testblas

import (
	"testing"

	"gonum.org/v1/gonum/blas"
)

var ztrmvTestCases = []struct {
	uplo blas.Uplo
	a    []complex128
	x    []complex128

	// Results with non-unit diagonal.
	want             []complex128
	wantNeg          []complex128
	wantTrans        []complex128
	wantTransNeg     []complex128
	w
    
func ZtrmvTest(t *testing.T, impl Ztrmver) {
	for tc, test := range ztrmvTestCases {
		n := len(test.x)
		uplo := test.uplo
		for _, trans := range []blas.Transpose{blas.NoTrans, blas.Trans, blas.ConjTrans} {
			for _, diag := range []blas.Diag{blas.NonUnit, blas.Unit} {
				for _, incX := range []int{-11, -2, -1, 1, 2, 7} {
					for _, lda := range []int{max(1, n), n + 11} {
						a := makeZGeneral(test.a, n, n, lda)
						if diag == blas.Unit {
							for i := 0; i < n; i++ {
								a[i*lda+i] = znan
							}
						}
						aCopy := make([]complex128, len(a))
						copy(aCopy, a)

						x := makeZVector(test.x, incX)

						impl.Ztrmv(uplo, trans, diag, n, a, lda, x, incX)

						if !zsame(a, aCopy) {
							t.Errorf("Case %v (uplo=%v,trans=%v,diag=%v,lda=%v,incX=%v): unexpected modification of A", tc, uplo, trans, diag, lda, incX)
						}

						var want []complex128
						if diag == blas.NonUnit {
							switch {
							case trans == blas.NoTrans && incX > 0:
								want = makeZVector(test.want, incX)
							case trans == blas.NoTrans && incX < 0:
								want = makeZVector(test.wantNeg, incX)
							case trans == blas.Trans && incX > 0:
								want = makeZVector(test.wantTrans, incX)
							case trans == blas.Trans && incX < 0:
								want = makeZVector(test.wantTransNeg, incX)
							case trans == blas.ConjTrans && incX > 0:
								want = makeZVector(test.wantConjTrans, incX)
							case trans == blas.ConjTrans && incX < 0:
								want = makeZVector(test.wantConjTransNeg, incX)
							}
						} else {
							switch {
							case trans == blas.NoTrans && incX > 0:
								want = makeZVector(test.wantUnit, incX)
							case trans == blas.NoTrans && incX < 0:
								want = makeZVector(test.wantUnitNeg, incX)
							case trans == blas.Trans && incX > 0:
								want = makeZVector(test.wantUnitTrans, incX)
							case trans == blas.Trans && incX < 0:
								want = makeZVector(test.wantUnitTransNeg, incX)
							case trans == blas.ConjTrans && incX > 0:
								want = makeZVector(test.wantUnitConjTrans, incX)
							case trans == blas.ConjTrans && incX < 0:
								want = makeZVector(test.wantUnitConjTransNeg, incX)
							}
						}
						if !zsame(x, want) {
							t.Errorf("Case %v (uplo=%v,trans=%v,diag=%v,lda=%v,incX=%v): unexpected result\nwant %v\ngot  %v", tc, uplo, trans, diag, lda, incX, want, x)
						}
					}
				}
			}
		}
	}
}