- Introduced unit tests for the main package to ensure compilation. - Added tests for the manager, including validation of upload sessions and handling of Blender binary paths. - Implemented tests for job token generation and validation, ensuring security and integrity. - Created tests for configuration management and database schema to verify functionality. - Added tests for logger and runner components to enhance overall test coverage and reliability.
20 lines
425 B
Go
20 lines
425 B
Go
package scripts
|
|
|
|
import (
|
|
"strings"
|
|
"testing"
|
|
)
|
|
|
|
func TestEmbeddedScripts_ArePresent(t *testing.T) {
|
|
if strings.TrimSpace(ExtractMetadata) == "" {
|
|
t.Fatal("ExtractMetadata script should not be empty")
|
|
}
|
|
if strings.TrimSpace(UnhideObjects) == "" {
|
|
t.Fatal("UnhideObjects script should not be empty")
|
|
}
|
|
if strings.TrimSpace(RenderBlenderTemplate) == "" {
|
|
t.Fatal("RenderBlenderTemplate should not be empty")
|
|
}
|
|
}
|
|
|