blob: 5772774d8f6aa847bce0a66f1c2c7366769b2e66 [file] [log] [blame]
// Copyright 2023 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package readme
import (
"path/filepath"
"testing"
)
func TestRustCrateReadmeGeneration(t *testing.T) {
git = gitForTest{}
wantPath := filepath.Join(*testDataDir, "rust", "want.json")
got, err := NewRustCrateReadme(filepath.Join(*testDataDir, "rust"))
if err != nil {
t.Fatalf("%v: expected no error, got %v.", t.Name(), err)
}
runReadmeDiffTest(t, wantPath, got)
}