Files
gf/os/gres/gres_test.go

26 lines
699 B
Go
Raw Normal View History

// Copyright 2019 gf Author(https://github.com/gogf/gf). All Rights Reserved.
//
// This Source Code Form is subject to the terms of the MIT License.
// If a copy of the MIT was not distributed with this file,
// You can obtain one at https://github.com/gogf/gf.
package gres_test
import (
2019-08-13 21:06:11 +08:00
"testing"
"github.com/gogf/gf/debug/gdebug"
"github.com/gogf/gf/os/gres"
"github.com/gogf/gf/test/gtest"
)
func Test_Export(t *testing.T) {
gtest.Case(t, func() {
2019-09-01 21:34:15 +08:00
srcPath := gdebug.CallerDirectory() + "/testdata/files"
goFilePath := gdebug.CallerDirectory() + "/testdata/testdata.go"
pkgName := "testdata"
2019-08-13 21:06:11 +08:00
err := gres.PackToGoFile(srcPath, goFilePath, pkgName)
gtest.Assert(err, nil)
})
}