github.com/masterhung0112/hk_server/v5@v5.0.0-20220302090640-ec71aef15e1c/testlib/resources_test.go (about)

     1  // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
     2  // See LICENSE.txt for license information.
     3  
     4  package testlib
     5  
     6  import (
     7  	"testing"
     8  
     9  	"github.com/stretchr/testify/assert"
    10  )
    11  
    12  func TestFindDir(t *testing.T) {
    13  	t.Run("find root", func(t *testing.T) {
    14  		path, found := findDir(root)
    15  		assert.True(t, found, "failed to find root")
    16  		assert.NotEmpty(t, path)
    17  	})
    18  }