testing/md/mockdata.go

26 lines
534 B
Go

// Copyright 2024 Matthew Rich <matthewrich.conf@gmail.com>. All rights reserved.
package mockdata
import (
// "testing"
// "io/ioutil"
// "path/filepath"
// "log"
// "fmt"
// "strings"
// "strconv"
"gitea.cv.mazarbul.net/rosskeen.house/testing/fixture"
)
// Raw file fixture data
func FixtureMockFile(p fixture.Param) interface{} {
mp := p.(MockParam)
return Read(mp.param.(string), mp.mock())
}
func ResultMockFile(p fixture.Result) interface{} {
mp := p.(MockParam)
return Read(mp.param.(string), mp.mock())
}