test(05-04): add failing tests for attach File, Thumb, and bucket
- ThumbFilename/PartitionDirectory/File.Thumb behavior tests - OpenBucket fail-loud and memblob tests - Migrate empty plugin list must create system_files
This commit is contained in:
19
lagoon/attach/file_test.go
Normal file
19
lagoon/attach/file_test.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package attach
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestFileTableName(t *testing.T) {
|
||||
if got := (File{}).TableName(); got != "system_files" {
|
||||
t.Fatalf("TableName = %q, want system_files", got)
|
||||
}
|
||||
}
|
||||
|
||||
func TestFileSelfRegisters(t *testing.T) {
|
||||
for _, m := range All() {
|
||||
switch m.(type) {
|
||||
case *File, File:
|
||||
return
|
||||
}
|
||||
}
|
||||
t.Fatal("File must self-register via attach.Register")
|
||||
}
|
||||
Reference in New Issue
Block a user