Commit 10de486b authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

IGenre: Rename searchArtist -> searchArtists

parent 3ec9e091
......@@ -35,7 +35,7 @@ public:
virtual const std::string& name() const = 0;
virtual uint32_t nbTracks() const = 0;
virtual Query<IArtist> artists( const QueryParameters* params = nullptr ) const = 0;
virtual Query<IArtist> searchArtist( const std::string& pattern,
virtual Query<IArtist> searchArtists( const std::string& pattern,
const QueryParameters* params = nullptr ) const = 0;
virtual Query<IMedia> tracks( const QueryParameters* params = nullptr ) const = 0;
virtual Query<IMedia> searchTracks( const std::string& pattern,
......
......@@ -89,7 +89,7 @@ Query<IArtist> Genre::artists( const QueryParameters* params ) const
return make_query<Artist, IArtist>( m_ml, "a.*", std::move( req ), m_id );
}
Query<IArtist> Genre::searchArtist( const std::string& pattern,
Query<IArtist> Genre::searchArtists( const std::string& pattern,
const QueryParameters* params ) const
{
return Artist::searchByGenre( m_ml, pattern, params, m_id );
......
......@@ -51,7 +51,7 @@ public:
virtual uint32_t nbTracks() const override;
void updateCachedNbTracks( int increment );
virtual Query<IArtist> artists( const QueryParameters* params ) const override;
virtual Query<IArtist> searchArtist( const std::string& pattern,
virtual Query<IArtist> searchArtists( const std::string& pattern,
const QueryParameters* params = nullptr ) const override;
virtual Query<IMedia> tracks( const QueryParameters* params ) const override;
virtual Query<IMedia> searchTracks( const std::string& pattern,
......
......@@ -268,7 +268,7 @@ TEST_F( Genres, SearchArtists )
artists = ml->searchArtists( "loutre", nullptr )->all();
ASSERT_EQ( 2u, artists.size() );
artists = g->searchArtist( "loutre" )->all();
artists = g->searchArtists( "loutre" )->all();
ASSERT_EQ( 1u, artists.size() );
ASSERT_EQ( a->id(), artists[0]->id() );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment