go-hep.org/x/hep@v0.38.1/groot/rdict/db_test.go (about)

     1  // Copyright ©2018 The go-hep Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package rdict_test
     6  
     7  import (
     8  	"testing"
     9  
    10  	"go-hep.org/x/hep/groot/rdict"
    11  )
    12  
    13  func TestStreamerInfosDbList(t *testing.T) {
    14  	found := false
    15  	sinfos := rdict.StreamerInfos.Values()
    16  	for _, si := range sinfos {
    17  		if si.Name() != "TObject" {
    18  			continue
    19  		}
    20  		found = true
    21  	}
    22  
    23  	if !found {
    24  		t.Fatalf("could not find streamer for TObject")
    25  	}
    26  }