mirror of
https://github.com/danielmiessler/Fabric.git
synced 2026-02-12 15:05:10 -05:00
### CHANGES - Introduce `cmd` directory for all main application binaries. - Move all Go packages into the `internal` directory. - Rename the `restapi` package to `server` for clarity. - Consolidate patterns and strategies into a new `data` directory. - Group all auxiliary scripts into a new `scripts` directory. - Move all documentation and images into a `docs` directory. - Update all Go import paths to reflect the new structure. - Adjust CI/CD workflows and build commands for new layout.
22 lines
381 B
Go
22 lines
381 B
Go
package core
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
|
|
"github.com/danielmiessler/fabric/internal/plugins/db/fsdb"
|
|
)
|
|
|
|
func TestSaveEnvFile(t *testing.T) {
|
|
db := fsdb.NewDb(os.TempDir())
|
|
registry, err := NewPluginRegistry(db)
|
|
if err != nil {
|
|
t.Fatalf("NewPluginRegistry() error = %v", err)
|
|
}
|
|
|
|
err = registry.SaveEnvFile()
|
|
if err != nil {
|
|
t.Fatalf("SaveEnvFile() error = %v", err)
|
|
}
|
|
}
|