github.com/egonelbre/exp@v0.0.0-20240430123955-ed1d3aa93911/whyreflect/main_test.go (about)

     1  package main
     2  
     3  import (
     4  	"bytes"
     5  	"os"
     6  	"testing"
     7  )
     8  
     9  func TestParse(t *testing.T) {
    10  	data, err := os.ReadFile("testdata/dump.txt")
    11  	if err != nil {
    12  		t.Fatal(err)
    13  	}
    14  
    15  	deps := Parse(bytes.NewReader(data))
    16  	if len(deps) != 12034 {
    17  		t.Fatal("expected 12034 entries")
    18  	}
    19  }