compare

package
v0.0.0-...-ba74bcc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompareResult

type CompareResult struct {
	ClassName string
	Methods   []ComparedMethod
}

CompareResult contains the result of a comparison between two singletons or two classes having the same name, implemented in different libraries.

func Compare

func Compare(libs []library.Library, className string) CompareResult

func (*CompareResult) CommonMethods

func (result *CompareResult) CommonMethods(sameRT bool) []ComparedMethod

func (*CompareResult) NonCommonMethods

func (result *CompareResult) NonCommonMethods() []ComparedMethod

type ComparedMethod

type ComparedMethod struct {
	library.Method
	ReturnTypes []string
	Presence    []bool
}

func (*ComparedMethod) HasDifferingReturnTypes

func (method *ComparedMethod) HasDifferingReturnTypes() bool

func (*ComparedMethod) IsCommon

func (method *ComparedMethod) IsCommon() bool

IsCommon returns true if the method is present in all libraries, regardless of the return type.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL