func Verify() error {
	var buf bytes.Buffer

	for itemKind, active := range Active() {
		if len(active) > 0 {
			fmt.Fprintf(&buf, "found %v %q resources that have not been released:\n", len(active), itemKind)

			for _, stack := range active {
				fmt.Fprintf(&buf, "  - %v\n", stack)
			}
		}
	}

	if buf.Len() == 0 {
		return nil
	}

	return errors.New(buf.String())
}
// Verify returns error if not all releasable resources have been released.
Verify returns error if not all releasable resources have been released.
// Verify returns error if not all releasable resources have been released .
func Verify() error {
	var buf bytes.Buffer
	for itemKind, active := range Active() {
		if len(active) > 0 {
			fmt.Fprintf(&buf, "found %v %q resources that have not been released:\n", len(active), itemKind)
			for _, stack := range active {
				fmt.Fprintf(&buf, "  - %v\n", stack)
			}
		}
	}
	if buf.Len() == 0 {
		return nil
	}
	return errors.New(buf.String())
}
func Verify ( ) error { var buf bytes . Buffer for itemKind , active := range Active ( ) { if len ( active ) > 0 { fmt . Fprintf ( & buf , " \n " , len ( active ) , itemKind ) for _ , stack := range active { fmt . Fprintf ( & buf , " \n " , stack ) } } } if buf . Len ( ) == 0 { return nil } return errors . New ( buf . String ( ) ) }
Verify returns error if not all releasable resources have been released.
Verify returns error if not all releasable resources have been released .