// Copyright 2024 Matthew Rich . All rights reserved. package main import ( _ "github.com/stretchr/testify/assert" "testing" _ "decl/internal/folio" _ "decl/internal/data" _ "log/slog" ) func TestLoadSourceURIConverter(t *testing.T) { /* var uri folio.URI = "file://../../examples/file.jx.yaml" docs, err := LoadSourceURIConverter(uri) assert.Nil(t, err) assert.Greater(t, len(docs), 0) slog.Info("TestLoadSourceURIConverter", "doc", docs[0], "resource", docs[0].(*folio.Document).ResourceDeclarations[0].Attributes) resDecl := docs[0].(*folio.Document).ResourceDeclarations[0] assert.Equal(t, "file", resDecl.Attributes.Type()) v, ok := docs[0].Get("file:///tmp/foo.txt") assert.True(t, ok) assert.Equal(t, "/tmp/foo.txt", v.(data.Declaration).Resource().(data.FileResource).FilePath()) */ }