github.com/hanwen/go-fuse@v1.0.0/internal/testutil/verbose.go (about)

     1  // Copyright 2016 the Go-FUSE Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package testutil
     6  
     7  import "flag"
     8  
     9  // VerboseTest returns true if the testing framework is run with -v.
    10  func VerboseTest() bool {
    11  	flag := flag.Lookup("test.v")
    12  	return flag != nil && flag.Value.String() == "true"
    13  }