title: go test error - no test files - error in GOPATH
body: <p>In the below environment:</p>
  <pre><code>code$ pwd
  /home/user1/code
  code$ echo $GOPATH
  /home/user1/golib:/home/user1/code
  code$ ls
  bin  pkg  src 
  code$ ls src/github.com/myhub/codingtest/
  main.go  test_main.go
  code$ 
  code$ 
  code$ 
  code$ 
  code$ 
  code$ cat src/github.com/myhub/codingtest/test_main.go 
  package main
  
  import &quot;testing&quot;
  
  func TestSplit(t *testing.T) {
          gotAllButLast, gotLast := split(2013)
          wantAllButLast := 201
          wantLast := 3
          if gotAllButLast != wantAllButLast {
                  t.Errorf(&quot;got %d but expected %d&quot;, gotAllButLast, wantAllButLast)
          }
          if wantLast != gotLast {
                  t.Errorf(&quot;got %d but expected %d&quot;, gotLast, wantLast)
          }
  }
  code$ 
  code$ 
  code$ 
  code$ 
  code$ 
  code$ cat src/github.com/myhub/codingtest/main.go 
  package main
  
  // Spit n into all but its last digit and its last digit
  func split(n int) (int, int) {
          return n / 10, n % 10
  }
  
  func main() {
  
  }
  code$ 
  </code></pre>
  <hr />
  <p><code>go test</code> gives below error:</p>
  <pre><code>code$ go test github.com/myhub/codingtest
  ?       github.com/myhub/codingtest   [no test files]
  code$ 
  code$ 
  code$ 
  code$ 
  code$ 
  code$ 
  </code></pre>
  <hr />
  <p>How to resolve <code>no test files error</code>?</p>