go_mediainfo
// mediainfo_test.go
package mediainfo_test
import (
"fmt"
"github.com/zhulik/go_mediainfo"
"io/iouttil"
"os"
"testing"
)
const (
ogg = "testdata/test.ogg"
mp3 = "testdata/test.mp3"
nonExists = "testdata/non_exists.ogg"
)
func TestOpenWithOgg ( t * testing. T ) {
mi := medianinfo . NewMediaInfo ()
error := mi . OpenFile ( ogg )
if error != nil {
t . Fail ()