github.com/haalcala/mattermost-server-change-repo@v0.0.0-20210713015153-16753fbeee5f/plugin/checker/internal/test/invalid/invalid.go (about)

     1  // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
     2  // See LICENSE.txt for license information.
     3  
     4  package invalid
     5  
     6  type API interface {
     7  	// ValidMethod is a fake method for testing the
     8  	// plugin comment checker with a valid comment.
     9  	//
    10  	// Minimum server version: 1.2.3
    11  	ValidMethod()
    12  
    13  	// InvalidMethod is a fake method for testing the
    14  	// plugin comment checker with an invalid comment.
    15  	InvalidMethod()
    16  }
    17  
    18  type Helpers interface {
    19  	// Minimum server version: 1.1
    20  	LowerVersionMethod()
    21  
    22  	// Minimum server version: 1.3
    23  	HigherVersionMethod()
    24  }
    25  
    26  type HelpersImpl struct {
    27  	api API
    28  }
    29  
    30  func (h *HelpersImpl) LowerVersionMethod() {
    31  	h.api.ValidMethod()
    32  }
    33  
    34  func (h *HelpersImpl) HigherVersionMethod() {
    35  	h.api.ValidMethod()
    36  }